[weld-dev] Validation on Alternative/Interceptor/Decorator mentioned in beans.xml

Jozef Hartinger jharting at redhat.com
Thu Apr 30 01:24:59 EDT 2015


Hi Emily,

Weld performs all these validations.

Jozef

On 04/29/2015 11:52 PM, Emily Jiang wrote:
> CDI1.2 spec section 8.2.2 says:
> In the beans.xml
> Each child <class> element must specify the name of a decorator bean 
> class. If there is no class with the specified name, or if the class 
> with the specified name is not a decorator bean class, the container 
> automatically detects the problem and treats it as a deployment problem.
> If the same class is listed twice under the <decorators> element, the 
> container automatically detects the problem and treats it as a 
> deployment problem.
>
> Will Weld do the validation or Weld expects the integrator to do the 
> validation?
>
> I am confused about what validations are done by the spec reference 
> implemenatation (RI) or RI consumer.
> -- 
> Thanks
> Emily
> =================
> Emily Jiang
> ejiang at apache.org <mailto:ejiang at apache.org>
>
>
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20150430/6d24a366/attachment.html 


More information about the weld-dev mailing list