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
ConstructorsConstructorDescriptionCdiConstructorInjector(Type type, jakarta.enterprise.inject.spi.BeanManager manager) -
Method Summary
Modifier and TypeMethodDescriptionconstruct(boolean unwrapAsync) construct(org.jboss.resteasy.spi.HttpRequest request, org.jboss.resteasy.spi.HttpResponse response, boolean unwrapAsync) injectableArguments(boolean unwrapAsync) injectableArguments(org.jboss.resteasy.spi.HttpRequest request, org.jboss.resteasy.spi.HttpResponse response, boolean unwrapAsync)
-
Constructor Details
-
CdiConstructorInjector
-
-
Method Details
-
construct
- 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
- 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
-