[cdi-dev] Clarification on the difference on Vetoed and exclude filters regarding Java EE component classes

Emily Jiang EMIJIANG at uk.ibm.com
Thu Aug 6 09:55:58 EDT 2015

In the section 3.6. Java EE components of CDI 1.2 specification, it has 
the following statement:

It is safe to annotate Java EE components with @Vetoed to prevent them 
being considered beans.

According to my understanding, the JavaEE component classes with @Vetoed 
should still support injections and ProcessInjectionTarget events should 
still be fired.

In the 12.4.2, it states:
If the filter is active, and: .... then we say that the type is excluded 
from discovery.

Does this mean if a JavaEE component class is excluded from the scan in 
the beans.xml, its CDI involvement should be ignored (@Inject would be 
ignored etc)? 

Many thanks,
Emily Jiang
WebSphere Application Server Liberty Profile development, CDI Development 
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
Phone:  +44 (0)1962 816278  Internal: 246278

Email: emijiang at uk.ibm.com 
Lotus Notes: Emily Jiang/UK/IBM at IBMGB

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20150806/94829138/attachment.html 

More information about the cdi-dev mailing list