public class PropertyInjectorImpl extends java.lang.Object implements PropertyInjector
Modifier and Type | Class and Description |
---|---|
private static class |
PropertyInjectorImpl.SetterMethod |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?> |
clazz |
protected java.util.HashMap<java.lang.reflect.Field,ValueInjector> |
fieldMap |
protected java.util.HashMap<java.lang.Long,java.lang.reflect.Method> |
setterhashes |
protected java.util.List<PropertyInjectorImpl.SetterMethod> |
setters |
Constructor and Description |
---|
PropertyInjectorImpl(java.lang.Class<?> clazz,
ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
private java.lang.reflect.Field[] |
getDeclaredFields(java.lang.Class<?> clazz) |
private java.lang.reflect.Method[] |
getDeclaredMethods(java.lang.Class<?> clazz) |
private ValueInjector |
getParameterExtractor(java.lang.Class<?> clazz,
ResteasyProviderFactory factory,
java.lang.reflect.AccessibleObject accessibleObject,
java.lang.annotation.Annotation[] annotations,
java.lang.Class<?> type,
java.lang.reflect.Type genericType) |
void |
inject(HttpRequest request,
HttpResponse response,
java.lang.Object target)
Inject values into annotated properties (fields/setter methods) of the target object.
|
void |
inject(java.lang.Object target)
Inject values into annotated properties (fields/setter methods) of the target object.
|
protected void |
populateMap(java.lang.Class<?> clazz,
ResteasyProviderFactory factory) |
private void |
setAccessible(java.lang.reflect.AccessibleObject member) |
protected java.util.HashMap<java.lang.reflect.Field,ValueInjector> fieldMap
protected java.util.List<PropertyInjectorImpl.SetterMethod> setters
protected java.util.HashMap<java.lang.Long,java.lang.reflect.Method> setterhashes
protected java.lang.Class<?> clazz
public PropertyInjectorImpl(java.lang.Class<?> clazz, ResteasyProviderFactory factory)
protected void populateMap(java.lang.Class<?> clazz, ResteasyProviderFactory factory)
private ValueInjector getParameterExtractor(java.lang.Class<?> clazz, ResteasyProviderFactory factory, java.lang.reflect.AccessibleObject accessibleObject, java.lang.annotation.Annotation[] annotations, java.lang.Class<?> type, java.lang.reflect.Type genericType)
public void inject(HttpRequest request, HttpResponse response, java.lang.Object target) throws Failure
PropertyInjector
inject
in interface PropertyInjector
Failure
public void inject(java.lang.Object target)
PropertyInjector
inject
in interface PropertyInjector
private java.lang.reflect.Field[] getDeclaredFields(java.lang.Class<?> clazz)
private java.lang.reflect.Method[] getDeclaredMethods(java.lang.Class<?> clazz)
private void setAccessible(java.lang.reflect.AccessibleObject member)