Ron Šmeral created AS7-6005:
-------------------------------
Summary: 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