public class PropertyInjectorImpl extends Object implements PropertyInjector
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
clazz |
protected HashMap<Field,ValueInjector> |
fieldMap |
protected HashMap<Long,Method> |
setterhashes |
protected List<org.jboss.resteasy.core.PropertyInjectorImpl.SetterMethod> |
setters |
| Constructor and Description |
|---|
PropertyInjectorImpl(Class<?> clazz,
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 void |
populateMap(Class<?> clazz,
ResteasyProviderFactory factory) |
protected HashMap<Field,ValueInjector> fieldMap
protected List<org.jboss.resteasy.core.PropertyInjectorImpl.SetterMethod> setters
protected Class<?> clazz
public PropertyInjectorImpl(Class<?> clazz, ResteasyProviderFactory factory)
protected void populateMap(Class<?> clazz, ResteasyProviderFactory factory)
public CompletionStage<Void> inject(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync) throws Failure
PropertyInjectorinject in interface PropertyInjectorrequest - 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)
PropertyInjectorinject in interface PropertyInjectortarget - target objectunwrapAsync - unwrap asyncCompletionStage or null if async isn't neededCopyright © 2020 JBoss by Red Hat. All rights reserved.