Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3443

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.12, 2.1.6
    • JSR-314
    • None

    Description

      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.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: