Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-371

Add support to weld for a non-standard mode that only scans for classes with annotations

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • 8.0.0.Alpha1
    • None
    • CDI / Weld
    • None

      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 .

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              sdouglas1@redhat.com Stuart Douglas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: