[cdi-dev] [JBoss JIRA] (CDI-18) Global enablement of interceptors, decorators and alternatives

Mark Struberg (JIRA) jira-events at lists.jboss.org
Mon Nov 26 11:16:24 EST 2012


    [ https://issues.jboss.org/browse/CDI-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737015#comment-12737015 ] 

Mark Struberg commented on CDI-18:
----------------------------------

{quote}
Alternatives are enabled as required by the spec (per bean archive) in JBoss AS
{quote}
Bean Archive is defined as each JAR being an own Bean Archive in CDI-1.0. As far as my tests showed an enabled alternative in WEB-INF/beans.xml is available in all jars in WEB-INF/lib/*.jar. I agree that this makes more sense than having each jar being an own BDA - but it's clearly against CDI-1.0 if implemented that way.

Can you verify this please? I tested this with JBossAS-7.0.1 and 7.1.0 back then afair.
                
> Global enablement of interceptors, decorators and alternatives
> --------------------------------------------------------------
>
>                 Key: CDI-18
>                 URL: https://issues.jboss.org/browse/CDI-18
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Beans, Decorators, Interceptors, Packaging and Deployment
>    Affects Versions: 1.0
>            Reporter: Mark Struberg
>            Assignee: Pete Muir
>            Priority: Critical
>             Fix For: 1.1.PRD
>
>
> Currently the spec defines that <interceptors>, <decorators> and <alternatives> affect only the Bean Archives where they are configured in (via beans.xml). 
> Thus if you e.g. enable an Alternative in a WEB-INF/beans.xml, it does NOT count for the jars in it's WEB-INF/lib folder!
> This is pretty unhandy because you would need to repackage all your jars in your WEB-INF/lib folder and add/expand the <alternatives> sections in their beans.xml.
> Needless to say that this is not only hard to do in a company build but is also impossibly to handle at deploy time in an OSGi environment!

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


More information about the cdi-dev mailing list