explicitely annotate @Dependent scoped beans and make them non-final
--------------------------------------------------------------------

                 Key: EXTCDI-140
                 URL: https://issues.apache.org/jira/browse/EXTCDI-140
             Project: MyFaces CODI
          Issue Type: Bug
            Reporter: Mark Struberg
            Assignee: Mark Struberg


Currently we have lots of Producers which are not annotated with any scope. 
That means they will be treated as @Dependent scoped beans by default.
I suggest to explicitly annotate them either @Dependent or @ApplicationScoped 
(if no state information is being used) because the automatic pickup as 
@Dependent has side effects which not all people are aware off.

I also suggest to _not_ declare any bean as _final_ because this prohibits the 
CDI container to create a proxy for such classes. This currently doesn't happen 
with @Dependent scoped beans, but this might get changed in future spec 
versions (auto serialisation support). It also makes it impossible to 
@Specializes such producers.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to