[weld-dev] Java EE component class injection point validation

Martin Kouba mkouba at redhat.com
Mon May 18 04:02:18 EDT 2015


Emily,

I've looked at WildFly integration code and it makes use of 
org.jboss.weld.manager.api.WeldManager.createInjectionTargetBuilder(AnnotatedType<T>) 
for EE components, i.e. delegates validation to weld implemetation.

M

Dne 18.5.2015 v 09:51 Emily Jiang napsal(a):
> oops. yes. Can you shed some lights on this problem?
>
> On Mon, May 18, 2015 at 8:48 AM, Martin Kouba <mkouba at redhat.com
> <mailto:mkouba at redhat.com>> wrote:
>
>     Emily,
>
>     I believe this one belongs rather to the weld-dev ML.
>
>     Martin
>
>     Dne 18.5.2015 v 09:23 Emily Jiang napsal(a):
>
>
>         In CDI1.2 spec, section 5.5.7
>         If a Java EE component class supporting injection that is not a
>         bean has
>         an injection point of
>         type InjectionPoint and qualifier @Default, the container
>         automatically
>         detects the problem
>         and treats it as a definition error.
>
>         How can I plugin this validation? Is there a callback spi I can
>         use to
>         validate the injection point on JavaEE component? This exception
>         needs
>         to be thrown during the application deployment.
>
>         --
>         Thanks
>         Emily
>         =================
>         Emily Jiang
>         ejiang at apache.org <mailto:ejiang at apache.org>
>         <mailto:ejiang at apache.org <mailto:ejiang at apache.org>>
>
>
>
>
>
> --
> Thanks
> Emily
> =================
> Emily Jiang
> ejiang at apache.org <mailto:ejiang at apache.org>

-- 
Martin Kouba
Software Engineer
Red Hat, Czech Republic


More information about the weld-dev mailing list