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

Mark Struberg commented on OWB-329:
-----------------------------------

To make this clear again:

The CreationalContext fulfils 2 needs:
1.) (main goal) to enable creation of cyclic referenced contextual instances
2.) to cleanup direct dependent objects.

ad 1: Since @NormalScoped bean injected into our current bean are only proxies, 
and the real contextual instance is created in a completely separate lifecycle, 
it clearly needs to get an own CreationalContext!
ad 2: @NormalScoped beans are NOT dependent objects to the current bean, thus 
this is also no reason to add them to the dependentBeans storage.

> Interceptor instances get created each time the interceptor gets called
> -----------------------------------------------------------------------
>
>                 Key: OWB-329
>                 URL: https://issues.apache.org/jira/browse/OWB-329
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Interceptor and Decorators
>    Affects Versions: M4
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> Interceptors are defined as being @Dependent scoped. Thus, for one 
> @ApplicationScoped contextual instance, only one interceptor instance of a 
> certain type must exist. But we currently create a new instance for each and 
> every method invocation which is intercepted. 
> This is not only terribly slow, but also doesn't work as expected from a 
> portable perspective.

-- 
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