Class CdiConstructorInjector

  • All Implemented Interfaces:
    org.jboss.resteasy.spi.ConstructorInjector

    public class CdiConstructorInjector
    extends Object
    implements org.jboss.resteasy.spi.ConstructorInjector
    A constructor injector which uses CDI to lookup beans for injected values. If no CDI bean was found, standard Jakarta REST injection is used.
    Author:
    Jozef Hartinger, James R. Perkins
    • Constructor Detail

      • CdiConstructorInjector

        public CdiConstructorInjector​(Type type,
                                      jakarta.enterprise.inject.spi.BeanManager manager)
    • Method Detail

      • construct

        public Object construct​(boolean unwrapAsync)
        Specified by:
        construct in interface org.jboss.resteasy.spi.ConstructorInjector
      • construct

        public Object construct​(org.jboss.resteasy.spi.HttpRequest request,
                                org.jboss.resteasy.spi.HttpResponse response,
                                boolean unwrapAsync)
                         throws org.jboss.resteasy.spi.Failure,
                                jakarta.ws.rs.WebApplicationException,
                                org.jboss.resteasy.spi.ApplicationException
        Specified by:
        construct in interface org.jboss.resteasy.spi.ConstructorInjector
        Throws:
        org.jboss.resteasy.spi.Failure
        jakarta.ws.rs.WebApplicationException
        org.jboss.resteasy.spi.ApplicationException
      • injectableArguments

        public Object injectableArguments​(boolean unwrapAsync)
        Specified by:
        injectableArguments in interface org.jboss.resteasy.spi.ConstructorInjector
      • injectableArguments

        public Object injectableArguments​(org.jboss.resteasy.spi.HttpRequest request,
                                          org.jboss.resteasy.spi.HttpResponse response,
                                          boolean unwrapAsync)
                                   throws org.jboss.resteasy.spi.Failure
        Specified by:
        injectableArguments in interface org.jboss.resteasy.spi.ConstructorInjector
        Throws:
        org.jboss.resteasy.spi.Failure