[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-440) Create a CDI Archive
John Ament (JIRA)
jira-events at lists.jboss.org
Mon Mar 18 13:38:43 EDT 2013
[ https://issues.jboss.org/browse/SHRINKWRAP-440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761645#comment-12761645 ]
John Ament commented on SHRINKWRAP-440:
---------------------------------------
This might be a case for having reusable archives.
Perhaps in your deployment utils, you create a "createCdiArchive" method that returns a JavaArchive w/ META-INF/beans.xml setup.
What if it's a WAR File?
> Create a CDI Archive
> ---------------------
>
> Key: SHRINKWRAP-440
> URL: https://issues.jboss.org/browse/SHRINKWRAP-440
> Project: ShrinkWrap
> Issue Type: Feature Request
> Reporter: George Gastaldi
>
> A lot of projects do this to make an archive CDI-enabled:
> {code}
> addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
> {code}
> It would be nice to have a addBeansXml() method together with a CdiArchive (or maybe automatically add it as the default behavior).
--
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 shrinkwrap-issues
mailing list