Class ResourcePropertyInjector
java.lang.Object
org.jboss.resteasy.core.ResourcePropertyInjector
-
Field Summary
Modifier and TypeFieldDescriptionprotected ResteasyProviderFactory
protected List
<org.jboss.resteasy.core.ResourcePropertyInjector.FieldInjector> protected ResourceClass
protected List
<org.jboss.resteasy.core.ResourcePropertyInjector.SetterInjector> -
Constructor Summary
ConstructorDescriptionResourcePropertyInjector
(ResourceClass resourceClass, ResteasyProviderFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionInject values into annotated properties (fields/setter methods) of the target object.inject
(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync) Inject values into annotated properties (fields/setter methods) of the target object.
-
Field Details
-
fields
-
setters
-
resourceClass
-
factory
-
-
Constructor Details
-
ResourcePropertyInjector
-
-
Method Details
-
inject
public CompletionStage<Void> inject(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync) throws Failure Description copied from interface:PropertyInjector
Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used inside the scope of an HTTP request.- Specified by:
inject
in interfacePropertyInjector
- Parameters:
request
- http requestresponse
- http responsetarget
- target objectunwrapAsync
- unwrap async- Returns:
CompletionStage
or null if async isn't needed- Throws:
Failure
- if application failure occurred
-
inject
Description copied from interface:PropertyInjector
Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used outside the scope of an HTTP request.- Specified by:
inject
in interfacePropertyInjector
- Parameters:
target
- target objectunwrapAsync
- unwrap async- Returns:
CompletionStage
or null if async isn't needed
-