google-nomulus/java/google/registry/module/frontend
nickfelt 9122372e38 Change Router to do reflective setAccessible() calls itself
This change moves the reflective setAccessible() calls on the request component
methods (needed so that they can be invoked reflectively from RequestHandler)
to within Router itself, eliminating the need to manually call this from each
Servlet class and then pass in the resulting Method objects.  Instead, we just
pass in the request component class and let Router do the rest.

Old comments say that cross-package reflection is not allowed on AppEngine, but
while it's quite possible this was once the case, I can't reproduce that
limitation, and the documentation seems to contradict any such restriction:

"""
An application is allowed full, unrestricted, reflective access to its own
classes.  It can query any private members, call the method
java.lang.reflect.AccessibleObject.setAccessible(), and read/set private
members.
"""
https://cloud.google.com/appengine/docs/java/runtime#reflection

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=138693006
2016-11-10 12:30:44 -05:00
..
BUILD Use Dagger to @Inject DnsQueue everywhere that is feasible 2016-10-14 16:58:07 -04:00
FrontendComponent.java Preserve test logs and test summary output for Kokoro CI runs 2016-10-14 16:57:43 -04:00
FrontendMetricsModule.java Preserve test logs and test summary output for Kokoro CI runs 2016-10-14 16:57:43 -04:00
FrontendRequestComponent.java Fix registrar settings method name 2016-11-02 15:19:34 -04:00
FrontendServlet.java Change Router to do reflective setAccessible() calls itself 2016-11-10 12:30:44 -05:00
package-info.java Preserve test logs and test summary output for Kokoro CI runs 2016-10-14 16:57:43 -04:00