[jboss-jira] [JBoss JIRA] (AS7-6005) The weld-core module should not be loaded by default when beans.xml is found
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Thu Nov 22 17:53:21 EST 2012
[ https://issues.jboss.org/browse/AS7-6005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Douglas resolved AS7-6005.
---------------------------------
Resolution: Rejected
The proxies that are generated by weld in the application's class loaders need access to weld-core classes
> The weld-core module should not be loaded by default when beans.xml is found
> ----------------------------------------------------------------------------
>
> Key: AS7-6005
> URL: https://issues.jboss.org/browse/AS7-6005
> Project: Application Server 7
> Issue Type: Enhancement
> Components: CDI / Weld, Class Loading
> Reporter: Ron Šmeral
> Assignee: Stuart Douglas
> Priority: Optional
>
> AS7 automatically loads the {{weld-core}} module with any deployment which contains the {{beans.xml}} marker file. This doesn't seem like best practice. Only the APIs should be exposed by default.
> From {{weld/src/main/java/org/jboss/as/weld/deployment/processors/WeldDependencyProcessor.java}}:
> {code:java}
> addDependency(moduleSpecification, moduleLoader, JAVAX_PERSISTENCE_API_ID);
> addDependency(moduleSpecification, moduleLoader, JAVAEE_API_ID);
> addDependency(moduleSpecification, moduleLoader, JAVASSIST_ID);
> addDependency(moduleSpecification, moduleLoader, WELD_CORE_ID);
> addDependency(moduleSpecification, moduleLoader, WELD_API_ID);
> addDependency(moduleSpecification, moduleLoader, WELD_SPI_ID);
> {code}
--
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 jboss-jira
mailing list