Package org.jboss.resteasy.cdi
Class CdiConstructorInjector
- java.lang.Object
-
- org.jboss.resteasy.cdi.CdiConstructorInjector
-
- All Implemented Interfaces:
ConstructorInjector
public class CdiConstructorInjector extends Object implements ConstructorInjector
This ConstructorInjector implementation uses CDI's BeanManager to obtain a contextual instance of a bean.- Author:
- Jozef Hartinger
-
-
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(HttpRequest request, HttpResponse response, boolean unwrapAsync)ObjectinjectableArguments(boolean unwrapAsync)ObjectinjectableArguments(HttpRequest request, 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 interfaceConstructorInjector
-
construct
public Object construct(HttpRequest request, HttpResponse response, boolean unwrapAsync) throws Failure, jakarta.ws.rs.WebApplicationException, ApplicationException
- Specified by:
constructin interfaceConstructorInjector- Throws:
Failurejakarta.ws.rs.WebApplicationExceptionApplicationException
-
injectableArguments
public Object injectableArguments(boolean unwrapAsync)
- Specified by:
injectableArgumentsin interfaceConstructorInjector
-
injectableArguments
public Object injectableArguments(HttpRequest request, HttpResponse response, boolean unwrapAsync) throws Failure
- Specified by:
injectableArgumentsin interfaceConstructorInjector- Throws:
Failure
-
-