Package org.jboss.resteasy.cdi
Class CdiPropertyInjector
java.lang.Object
org.jboss.resteasy.cdi.CdiPropertyInjector
- All Implemented Interfaces:
PropertyInjector
JAX-RS property injection is performed twice on CDI Beans. Firstly by the JaxrsInjectionTarget
wrapper and then again by RESTEasy (which operates on Weld proxies instead of the underlying instances).
To eliminate this, we enabled the injector only for non-CDI beans (JAX-RS components outside of BDA) or
CDI components that are not JAX-RS components.
- Author:
- Jozef Hartinger
-
Constructor Summary
ConstructorsConstructorDescriptionCdiPropertyInjector(PropertyInjector delegate, Class<?> clazz, Map<Class<?>, Type> sessionBeanInterface, jakarta.enterprise.inject.spi.BeanManager manager) -
Method Summary
Modifier and TypeMethodDescriptioninject(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync) toString()
-
Constructor Details
-
CdiPropertyInjector
public CdiPropertyInjector(PropertyInjector delegate, Class<?> clazz, Map<Class<?>, Type> sessionBeanInterface, jakarta.enterprise.inject.spi.BeanManager manager)
-
-
Method Details
-
inject
- Specified by:
injectin interfacePropertyInjector
-
inject
public CompletionStage<Void> inject(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync) throws Failure, jakarta.ws.rs.WebApplicationException, ApplicationException - Specified by:
injectin interfacePropertyInjector- Throws:
Failurejakarta.ws.rs.WebApplicationExceptionApplicationException
-
toString
-