Package org.jboss.resteasy.core
Class PropertyInjectorImpl
- java.lang.Object
-
- org.jboss.resteasy.core.PropertyInjectorImpl
-
- All Implemented Interfaces:
PropertyInjector
public class PropertyInjectorImpl extends Object implements PropertyInjector
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description PropertyInjectorImpl(Class<?> clazz, ResteasyProviderFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>inject(Object target, boolean unwrapAsync)Inject values into annotated properties (fields/setter methods) of the target object.CompletionStage<Void>inject(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync)Inject values into annotated properties (fields/setter methods) of the target object.protected voidpopulateMap(Class<?> clazz, ResteasyProviderFactory factory)
-
-
-
Constructor Detail
-
PropertyInjectorImpl
public PropertyInjectorImpl(Class<?> clazz, ResteasyProviderFactory factory)
-
-
Method Detail
-
populateMap
protected void populateMap(Class<?> clazz, ResteasyProviderFactory factory)
-
inject
public CompletionStage<Void> inject(HttpRequest request, HttpResponse response, Object target, boolean unwrapAsync) throws Failure
Description copied from interface:PropertyInjectorInject 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:
injectin interfacePropertyInjector- Parameters:
request- http requestresponse- http responsetarget- target objectunwrapAsync- unwrap async- Returns:
CompletionStageor null if async isn't needed- Throws:
Failure- if application failure occurred
-
inject
public CompletionStage<Void> inject(Object target, boolean unwrapAsync)
Description copied from interface:PropertyInjectorInject 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:
injectin interfacePropertyInjector- Parameters:
target- target objectunwrapAsync- unwrap async- Returns:
CompletionStageor null if async isn't needed
-
-