Package org.jboss.resteasy.core
Class ContextParameterInjector
- java.lang.Object
-
- org.jboss.resteasy.core.ContextParameterInjector
-
- All Implemented Interfaces:
ValueInjector
public class ContextParameterInjector extends java.lang.Object implements ValueInjector
- Version:
- $Revision: 1 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classContextParameterInjector.GenericDelegatingProxy
-
Field Summary
Fields Modifier and Type Field Description private ResteasyProviderFactoryfactoryprivate java.lang.Classproxyprivate java.lang.Classtype
-
Constructor Summary
Constructors Constructor Description ContextParameterInjector(java.lang.Class proxy, java.lang.Class type, ResteasyProviderFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectcreateProxy()java.lang.Objectinject()Inject outside the context of an HTTP request.java.lang.Objectinject(HttpRequest request, HttpResponse response)Inject inside the context of an HTTP request.
-
-
-
Field Detail
-
type
private java.lang.Class type
-
proxy
private java.lang.Class proxy
-
factory
private ResteasyProviderFactory factory
-
-
Constructor Detail
-
ContextParameterInjector
public ContextParameterInjector(java.lang.Class proxy, java.lang.Class type, ResteasyProviderFactory factory)
-
-
Method Detail
-
inject
public java.lang.Object inject(HttpRequest request, HttpResponse response)
Description copied from interface:ValueInjectorInject inside the context of an HTTP request.- Specified by:
injectin interfaceValueInjector- Returns:
-
inject
public java.lang.Object inject()
Description copied from interface:ValueInjectorInject outside the context of an HTTP request. For instance, a singleton may have proxiable and injectable jax-rs objects like Request, UriInfo, or HttpHeaders.- Specified by:
injectin interfaceValueInjector- Returns:
-
createProxy
protected java.lang.Object createProxy()
-
-