[cdi-dev] [JBoss JIRA] Created: (CDI-150) A beans.xml file should explicitly define its beans.xml dependencies

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Mon Sep 5 08:09:26 EDT 2011


A beans.xml file should explicitly define its beans.xml dependencies
--------------------------------------------------------------------

                 Key: CDI-150
                 URL: https://issues.jboss.org/browse/CDI-150
             Project: CDI Specification Issues
          Issue Type: Feature Request
            Reporter: Geoffrey De Smet


See the problem described in this comment on CDI-87:
  https://issues.jboss.org/browse/CDI-87?focusedCommentId=12626218

Solution proposal 1:

Every beans.xml gets an id:

{code}
<beans id="org.jboss.seam.solder">
  ...
</beans>
{code}

Then it's possible to depend on other beans.xml files:

{code}
<beans id="org.jboss.seam.security">
  <dependency refid="org.jboss.seam.solder"/>
  ...
</beans>
{code}

So when guvnor depends on security, it can automatically, transitively inherit solder (without depending on it directly):
{code}
<beans id="org.drools.guvnor">
  <dependency refid="org.jboss.seam.security"/>
  ...
</beans>
{code}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list