public class ResourcePropertyInjector extends Object implements PropertyInjector
Modifier and Type | Field and Description |
---|---|
protected ResteasyProviderFactory |
factory |
protected List<org.jboss.resteasy.core.ResourcePropertyInjector.FieldInjector> |
fields |
protected ResourceClass |
resourceClass |
protected List<org.jboss.resteasy.core.ResourcePropertyInjector.SetterInjector> |
setters |
Constructor and Description |
---|
ResourcePropertyInjector(ResourceClass resourceClass,
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 List<org.jboss.resteasy.core.ResourcePropertyInjector.FieldInjector> fields
protected List<org.jboss.resteasy.core.ResourcePropertyInjector.SetterInjector> setters
protected ResourceClass resourceClass
protected ResteasyProviderFactory factory
public ResourcePropertyInjector(ResourceClass resourceClass, 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 © 2021 JBoss by Red Hat. All rights reserved.