You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2013/08/16 14:55:48 UTC

[jira] [Commented] (DELTASPIKE-398) BeanProvider handling for @Dependent scoped beans

    [ https://issues.apache.org/jira/browse/DELTASPIKE-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13742177#comment-13742177 ] 

Mark Struberg commented on DELTASPIKE-398:
------------------------------------------

We also should make the DependentProvider Serializable if possible.
                
> BeanProvider handling for @Dependent scoped beans
> -------------------------------------------------
>
>                 Key: DELTASPIKE-398
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-398
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 0.5
>
>
> BeanProvider#getContextualReference complains if you create a @Dependent scoped bean. The reason for this is that those beans shall get destroyed manually to provide proper clean up. 
> We should provide methods which return a helper class which internally keep the contextual instance and the CreationalContext for it and a get() plus a release() method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira