public class ResourcePropertyInjector extends Object implements PropertyInjector
Modifier and Type | Field and Description |
---|---|
protected ResteasyProviderFactory |
factory |
protected List<org.jboss.resteasy.core.ResourcePropertyInjector.FieldInjector> |
fields |
protected ResourceClass |
resourceClass |
protected List<org.jboss.resteasy.core.ResourcePropertyInjector.SetterInjector> |
setters |
Constructor and Description |
---|
ResourcePropertyInjector(ResourceClass resourceClass,
ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
inject(HttpRequest request,
HttpResponse response,
Object target,
boolean unwrapAsync)
Inject values into annotated properties (fields/setter methods) of the target object.
|
CompletionStage<Void> |
inject(Object target,
boolean unwrapAsync)
Inject values into annotated properties (fields/setter methods) of the target object.
|
protected List<org.jboss.resteasy.core.ResourcePropertyInjector.FieldInjector> fields
protected List<org.jboss.resteasy.core.ResourcePropertyInjector.SetterInjector> setters
protected ResourceClass resourceClass
protected ResteasyProviderFactory factory
public ResourcePropertyInjector(ResourceClass resourceClass, ResteasyProviderFactory factory)
public CompletionStage<Void> inject(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync) throws Failure
PropertyInjector
inject
in interface PropertyInjector
request
- http requestresponse
- http responsetarget
- target objectunwrapAsync
- unwrap asyncCompletionStage
or null if async isn't neededFailure
- if application failure occurredpublic CompletionStage<Void> inject(Object target, boolean unwrapAsync)
PropertyInjector
inject
in interface PropertyInjector
target
- target objectunwrapAsync
- unwrap asyncCompletionStage
or null if async isn't neededCopyright © 2020 JBoss by Red Hat. All rights reserved.