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 |
---|---|
void |
inject(HttpRequest request,
HttpResponse response,
Object target)
Inject values into annotated properties (fields/setter methods) of the target object.
|
void |
inject(Object target)
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 void inject(HttpRequest request, HttpResponse response, Object target) throws Failure
PropertyInjector
inject
in interface PropertyInjector
request
- http requestresponse
- http responsetarget
- target objectFailure
- if application failure occurredpublic void inject(Object target)
PropertyInjector
inject
in interface PropertyInjector
target
- target objectCopyright © 2020 JBoss by Red Hat. All rights reserved.