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
PropertyInjector
inject
in interface PropertyInjector
request
- http requestresponse
- http responsetarget
- target objectunwrapAsync
- unwrap asyncCompletionStage
Failure
- if application failure occurredpublic CompletionStage<Void> inject(Object target, boolean unwrapAsync)
PropertyInjector
inject
in interface PropertyInjector
target
- target objectunwrapAsync
- unwrap asyncCompletionStage
Copyright © 2019 JBoss by Red Hat. All rights reserved.