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 class
ContextParameterInjector.GenericDelegatingProxy
-
Field Summary
Fields Modifier and Type Field Description private ResteasyProviderFactory
factory
private java.lang.Class
proxy
private java.lang.Class
type
-
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.Object
createProxy()
java.lang.Object
inject()
Inject outside the context of an HTTP request.java.lang.Object
inject(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:ValueInjector
Inject inside the context of an HTTP request.- Specified by:
inject
in interfaceValueInjector
- Returns:
-
inject
public java.lang.Object inject()
Description copied from interface:ValueInjector
Inject 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:
inject
in interfaceValueInjector
- Returns:
-
createProxy
protected java.lang.Object createProxy()
-
-