Class JaxrsInjectionTarget<T>
java.lang.Object
org.jboss.resteasy.cdi.JaxrsInjectionTarget<T>
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.InjectionTarget<T>, jakarta.enterprise.inject.spi.Producer<T>
@Deprecated(forRemoval=true,
since="7.0.3")
public class JaxrsInjectionTarget<T>
extends Object
implements jakarta.enterprise.inject.spi.InjectionTarget<T>
Deprecated, for removal: This API element is subject to removal in a future version.
this should not be used outside of this module and may be removed in a future release
An
InjectionTarget wrapper for Jakarta REST components that performs property injection and validation after
CDI injection.
Property injection via PropertyInjectorImpl is used to populate @Context and @*Param-annotated
fields and setters which CDI does not inject. Members CDI injects, those annotated with @Inject on the
bean's annotated type, including the members the RESTEasy CDI extensions add @Inject to, are skipped.
Validation is performed for all root resource classes after injection, using a GeneralValidatorCDI resolved
from a ContextResolver. If the class has a @PostConstruct method, validation is deferred to the
postConstruct(Object) phase.
- Author:
- Jozef Hartinger, James R. Perkins
-
Constructor Summary
ConstructorsModifierConstructorDescriptionJaxrsInjectionTarget(jakarta.enterprise.inject.spi.InjectionTarget<T> delegate, Class<T> clazz) Deprecated, for removal: This API element is subject to removal in a future version.this should not be used outside of this moduleprotectedJaxrsInjectionTarget(jakarta.enterprise.inject.spi.InjectionTarget<T> delegate, Class<T> clazz, Predicate<Member> propertyInjectionFilter) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new wrappedInjectionTargetfor custom RESTEasy bean validation and property injection. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Set<jakarta.enterprise.inject.spi.InjectionPoint> Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidpostConstruct(T instance) Deprecated, for removal: This API element is subject to removal in a future version.voidpreDestroy(T instance) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
JaxrsInjectionTarget
@Deprecated(forRemoval=true, since="7.0.3") public JaxrsInjectionTarget(jakarta.enterprise.inject.spi.InjectionTarget<T> delegate, Class<T> clazz) Deprecated, for removal: This API element is subject to removal in a future version.this should not be used outside of this module -
JaxrsInjectionTarget
protected JaxrsInjectionTarget(jakarta.enterprise.inject.spi.InjectionTarget<T> delegate, Class<T> clazz, Predicate<Member> propertyInjectionFilter) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new wrappedInjectionTargetfor custom RESTEasy bean validation and property injection.A
PropertyInjectoris used to inject the@Contextand@*Paraminjection points CDI does not inject. ThepropertyInjectionFilterreturnstruefor members the property injector should skip because CDI injects them.- Parameters:
delegate- the delegate injection targetclazz- the type of the beanpropertyInjectionFilter- the filter for members RESTEasy property injection should skip
-
-
Method Details
-
inject
-
postConstruct
-
preDestroy
-
dispose
-
getInjectionPoints
-
produce
-