[webbeans-issues] [JBoss JIRA] Closed: (WBRI-107) AnnotatedClass instances should be cached and reused

Pete Muir (JIRA) jira-events at lists.jboss.org
Sat Mar 7 13:43:22 EST 2009


     [ https://jira.jboss.org/jira/browse/WBRI-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WBRI-107.
--------------------------

    Resolution: Won't Fix


Not going to do this, all uses of this class are now at deploy time or lazily initialized, and then cached inside whatever uses them.

Where they aren't created by the BeanDeployer, we need to check their usage.

> AnnotatedClass instances should be cached and reused
> ----------------------------------------------------
>
>                 Key: WBRI-107
>                 URL: https://jira.jboss.org/jira/browse/WBRI-107
>             Project: Web Beans
>          Issue Type: Bug
>    Affects Versions: 1.0.0.ALPHA1
>            Reporter: David Allen
>
> The current implementation often creates instances of AnnotatedClass multiple times for the same class, including everytime a bean is to be injected somewhere.  Since the API types are reflected, this also includes reflecting on Object many times.  If a cache is kept for each class already fully reflected/analyzed, it would save memory and time.  Other code can also benefit from being able to lookup information about classes already reflected by the bean hierarchy.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list