Class CdiConstructorInjector
- java.lang.Object
-
- org.jboss.resteasy.microprofile.client.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 Summary
Constructors Constructor Description CdiConstructorInjector(Type type, jakarta.enterprise.inject.spi.BeanManager manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectconstruct(boolean unwrapAsync)Objectconstruct(org.jboss.resteasy.spi.HttpRequest request, org.jboss.resteasy.spi.HttpResponse response, boolean unwrapAsync)ObjectinjectableArguments(boolean unwrapAsync)ObjectinjectableArguments(org.jboss.resteasy.spi.HttpRequest request, org.jboss.resteasy.spi.HttpResponse response, boolean unwrapAsync)
-
-
-
Constructor Detail
-
CdiConstructorInjector
public CdiConstructorInjector(Type type, jakarta.enterprise.inject.spi.BeanManager manager)
-
-
Method Detail
-
construct
public Object construct(boolean unwrapAsync)
- Specified by:
constructin interfaceorg.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:
constructin interfaceorg.jboss.resteasy.spi.ConstructorInjector- Throws:
org.jboss.resteasy.spi.Failurejakarta.ws.rs.WebApplicationExceptionorg.jboss.resteasy.spi.ApplicationException
-
injectableArguments
public Object injectableArguments(boolean unwrapAsync)
- Specified by:
injectableArgumentsin interfaceorg.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:
injectableArgumentsin interfaceorg.jboss.resteasy.spi.ConstructorInjector- Throws:
org.jboss.resteasy.spi.Failure
-
-