Memory consumption: Reflect[Constructor/Method/Field]Impl should only store a reference to
the underlying reflection object when it is first used
-------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBREFLECT-133
URL:
https://jira.jboss.org/browse/JBREFLECT-133
Project: JBoss Reflection
Issue Type: Feature Request
Reporter: Kabir Khan
Assignee: Kabir Khan
Fix For: 2.2.0.Beta
For all beans that get installed we look for all the ClassInfo members.
ReflectMethodInfoImpl etc. is initialized with everything needed apart from invoking on
the actual underlying java.lang.reflect.Method. To save on memory I am only initializing
the underlying java.lang.reflect.Method field once someone tries to call
ReflectMethodInfoImpl.invoke(), since in most cases methods are not actually called just
obtained to determine property setters/getters.
The same goes for ReflectFieldInfoImpl and java.lang.reflect.Field and
ReflectConstructorInfoImpl and java.lang.reflect.Constructor
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira