Package org.jboss.resteasy.core
Class MethodInjectorImpl
- java.lang.Object
-
- org.jboss.resteasy.core.MethodInjectorImpl
-
- All Implemented Interfaces:
MethodInjector
public class MethodInjectorImpl extends java.lang.Object implements MethodInjector
- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
expectsBody
protected ResteasyProviderFactory
factory
protected java.lang.reflect.Method
interfaceBasedMethod
protected ResourceLocator
method
protected ValueInjector[]
params
-
Constructor Summary
Constructors Constructor Description MethodInjectorImpl(ResourceLocator resourceMethod, ResteasyProviderFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
expectsBody()
static java.lang.reflect.Method
findInterfaceBasedMethod(java.lang.Class root, java.lang.reflect.Method method)
ValueInjector[]
getParams()
java.lang.Object[]
injectArguments(HttpRequest input, HttpResponse response)
Create the arguments that would be used to invoke the method in the context of an HTTP request.java.lang.Object
invoke(HttpRequest request, HttpResponse httpResponse, java.lang.Object resource)
Invoke on a method in the context of an HTTP request.
-
-
-
Field Detail
-
params
protected ValueInjector[] params
-
factory
protected ResteasyProviderFactory factory
-
method
protected ResourceLocator method
-
interfaceBasedMethod
protected java.lang.reflect.Method interfaceBasedMethod
-
expectsBody
protected boolean expectsBody
-
-
Constructor Detail
-
MethodInjectorImpl
public MethodInjectorImpl(ResourceLocator resourceMethod, ResteasyProviderFactory factory)
-
-
Method Detail
-
expectsBody
public boolean expectsBody()
- Specified by:
expectsBody
in interfaceMethodInjector
-
findInterfaceBasedMethod
public static java.lang.reflect.Method findInterfaceBasedMethod(java.lang.Class root, java.lang.reflect.Method method)
-
getParams
public ValueInjector[] getParams()
- Specified by:
getParams
in interfaceMethodInjector
-
injectArguments
public java.lang.Object[] injectArguments(HttpRequest input, HttpResponse response)
Description copied from interface:MethodInjector
Create the arguments that would be used to invoke the method in the context of an HTTP request.- Specified by:
injectArguments
in interfaceMethodInjector
- Returns:
-
invoke
public java.lang.Object invoke(HttpRequest request, HttpResponse httpResponse, java.lang.Object resource) throws Failure, ApplicationException
Description copied from interface:MethodInjector
Invoke on a method in the context of an HTTP request. Does all JAX-RS parameter injection.- Specified by:
invoke
in interfaceMethodInjector
- Returns:
- Throws:
Failure
ApplicationException
-
-