[perf] cache Method and Field instances when PostConstruct processing is done 
and default LifecycleProvider is set
------------------------------------------------------------------------------------------------------------------

                 Key: MYFACES-3443
                 URL: https://issues.apache.org/jira/browse/MYFACES-3443
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


Each time a managed bean is created, it is inspected for 
PostConstruct/PreDestroy annotations. The default algorithm does not cache that 
information. Usually the container do that, so this effect is not seen in 
containers like Tomcat and others (MyFaces provide a LifecycleProvider for 
them).

By default, we can use the same trick for MetaRulesetImpl, that has a 
WeakHashMap<ClassLoader, Map<..., ...> > so when the application is undeployed, 
no cyclic reference is hold.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to