[ 
https://issues.apache.org/jira/browse/OWB-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835437#action_12835437
 ] 

Joe Bergmark commented on OWB-288:
----------------------------------

We definitely need to do this, but I think we need to be careful in how we 
cache.  There may be times where we have have more than one kind of proxy for a 
given bean type, so I'm not sure a lookup of class to proxy class is enough 
information.

For example we may have a normal scoped bean that is decorated.  Right now that 
would involve at least two proxies.  1 for the bean class itself, and another 
that we use when we inject the delegate into the Decorators.

> cache generated Proxiy classes
> ------------------------------
>
>                 Key: OWB-288
>                 URL: https://issues.apache.org/jira/browse/OWB-288
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: M3
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: M4
>
>
> currently we create a new proxy class each time we need a new proxy instance. 
> This way we leak permgen space.
> We could easily cache those generated proxy classes in JavassistProxyFactory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to