[
https://issues.jboss.org/browse/AS7-2164?page=com.atlassian.jira.plugin.s...
]
Eduardo Silva commented on AS7-2164:
------------------------------------
Stuart,
The changes that you requested is regarding the fact that the WelEEInjection is not called
if the bean.xml is not found. So could the solution be scan the war(ear) file classes
anyway to look for CDI annotations?
class BeansXmlProcessor
...
if (!beanArchiveMetadata.isEmpty()) {
WeldDeploymentMetadata deploymentMetadata = new
WeldDeploymentMetadata(beanArchiveMetadata);
deploymentUnit.putAttachment(WeldDeploymentMetadata.ATTACHMENT_KEY,
deploymentMetadata);
// mark the deployment as requiring CDI integration
WeldDeploymentMarker.mark(deploymentUnit);
if (deploymentUnit.getParent() != null) {
WeldDeploymentMarker.mark(deploymentUnit.getParent());
}
} else {
// Code to find CDI
if found CDI log warn about beans.xml not found
}
Warn if CDI annotations present but no beans.xml
------------------------------------------------
Key: AS7-2164
URL:
https://issues.jboss.org/browse/AS7-2164
Project: Application Server 7
Issue Type: Feature Request
Components: CDI / Weld
Reporter: Stuart Douglas
Priority: Minor
Fix For: Open To Community
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira