google-nomulus/java/google/registry
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
..
backup Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
batch Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
bigquery Use correct <a> tag syntax in javadoc @see tag 2016-11-02 15:19:34 -04:00
braintree Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
builddefs Change all references to Domain Registry to Nomulus 2016-10-14 16:58:07 -04:00
config Set svID in ConfigModule instead of hard-coding it 2016-11-10 12:29:53 -05:00
cron Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
dns Clean up ConfigModule 2016-11-10 11:19:58 -05:00
eclipse Fix build error by adding testonly=1 to eclipse BUILD file 2016-11-10 12:30:20 -05:00
env Enable built-in session cleanup in production 2016-11-10 11:13:52 -05:00
export Use cursor to track updating of registrar sheet 2016-11-10 11:21:29 -05:00
flows Add extra flow logic hook for application info 2016-11-10 12:30:44 -05:00
gcs Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
groups Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
idn Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
keyring/api Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
loadtest Fix double-URL-encoding bug in LoadTestAction 2016-11-02 15:19:34 -04:00
mapreduce Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
model Set svID in ConfigModule instead of hard-coding it 2016-11-10 12:29:53 -05:00
module Change Router to do reflective setAccessible() calls itself 2016-11-10 12:30:44 -05:00
monitoring Use correct <a> tag syntax in javadoc @see tag 2016-11-02 15:19:34 -04:00
pricing Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
rdap Switch over to non-ReferenceUnion fields on DomainBase 2016-11-02 15:19:34 -04:00
rde Use correct <a> tag syntax in javadoc @see tag 2016-11-02 15:19:34 -04:00
request Change Router to do reflective setAccessible() calls itself 2016-11-10 12:30:44 -05:00
security Convert RegistrarServlet to RegistrarAction 2016-11-02 15:19:34 -04:00
storage/drive Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
tldconfig/idn Use correct <a> tag syntax in javadoc @see tag 2016-11-02 15:19:34 -04:00
tmch Use correct <a> tag syntax in javadoc @see tag 2016-11-02 15:19:34 -04:00
tools Add Google Cloud Storage helper for non-GAE environment 2016-11-10 12:30:00 -05:00
ui Don't throw an exception on orphaned contacts 2016-11-10 11:27:32 -05:00
util Add retry logic to CreateLrpTokensCommand 2016-11-10 11:26:03 -05:00
whois Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
xjc Make essential Bazel packages publicly visible 2016-10-24 11:57:00 -04:00
xml Use correct <a> tag syntax in javadoc @see tag 2016-11-02 15:19:34 -04:00
BUILD Fix Bazel visibility rules 2016-10-24 11:57:00 -04:00
repositories.bzl Revert change to Guava 20 until we get it working properly 2016-11-02 15:19:34 -04:00