Package org.jboss.resteasy.core
Class PropertyInjectorImpl
java.lang.Object
org.jboss.resteasy.core.PropertyInjectorImpl
- All Implemented Interfaces:
PropertyInjector
- Version:
- $Revision: 1 $
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?>
protected HashMap<Field,
ValueInjector> protected List<PropertyInjectorImpl.SetterMethod>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Field[]
getDeclaredFields
(Class<?> clazz) private Method[]
getDeclaredMethods
(Class<?> clazz) private ValueInjector
getParameterExtractor
(Class<?> clazz, ResteasyProviderFactory factory, AccessibleObject accessibleObject, Annotation[] annotations, Class<?> type, Type genericType) void
Inject values into annotated properties (fields/setter methods) of the target object.void
inject
(HttpRequest request, HttpResponse response, Object target) Inject values into annotated properties (fields/setter methods) of the target object.protected void
populateMap
(Class<?> clazz, ResteasyProviderFactory factory) private void
setAccessible
(AccessibleObject member)
-
Field Details
-
fieldMap
-
setters
-
setterhashes
-
clazz
-
-
Constructor Details
-
PropertyInjectorImpl
-
-
Method Details
-
populateMap
-
getParameterExtractor
private ValueInjector getParameterExtractor(Class<?> clazz, ResteasyProviderFactory factory, AccessibleObject accessibleObject, Annotation[] annotations, Class<?> type, Type genericType) -
inject
Description copied from interface:PropertyInjector
Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used inside the scope of an HTTP request.- Specified by:
inject
in interfacePropertyInjector
- Throws:
Failure
-
inject
Description copied from interface:PropertyInjector
Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used outside the scope of an HTTP request.- Specified by:
inject
in interfacePropertyInjector
-
getDeclaredFields
-
getDeclaredMethods
-
setAccessible
-