[jboss-jira] [JBoss JIRA] (AS7-3723) Add support to weld for a non-standard mode that only scans for classes with annotations

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Sun Feb 12 05:23:01 EST 2012


Stuart Douglas created AS7-3723:
-----------------------------------

             Summary: Add support to weld for a non-standard mode that only scans for classes with annotations
                 Key: AS7-3723
                 URL: https://issues.jboss.org/browse/AS7-3723
             Project: Application Server 7
          Issue Type: Feature Request
          Components: CDI / Weld
            Reporter: Stuart Douglas
            Assignee: Stuart Douglas
             Fix For: 7.1.1.Final


On 12 Feb 2012, at 04:01, Stuart Douglas wrote:

I have actually toyed with the idea of including this as an AS7 extension. 

I was thinking something like this in the beans.xml file:

<as7:only-scan-annotated enabled="true">
<as7:annotation>org.jboss.seam.ExtensionManaged</as7:annotation>
<as7:annotation>com.acme.SomeOtherAnnotation</as7:annotation>
</as7:only:scan-annotation>

This setting would only be applied to the bean archive that has it in its beans.xml (so 3rd party libraries would function properly), and the set of annotations to scan would be merged and applied to all bean archives that use this setting (so if deltaspike defines ExtensionManaged the use would also not have to add that the list of annotations to scan, it would be picked up from the beans.xml file). 

This is actually relatively easy to implement, and I could probably get it into AS 7.1.1 .


--
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

        


More information about the jboss-jira mailing list