org.jboss.resteasy.core
Class MethodInjectorImpl

java.lang.Object
  extended by org.jboss.resteasy.core.MethodInjectorImpl
All Implemented Interfaces:
MethodInjector

public class MethodInjectorImpl
extends Object
implements MethodInjector

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  ResteasyProviderFactory factory
           
protected  Method invokedMethod
           
protected  Method method
           
protected  ValueInjector[] params
           
protected  Class rootClass
           
 
Constructor Summary
MethodInjectorImpl(Class root, Method method, ResteasyProviderFactory factory)
           
 
Method Summary
static Method findInterfaceBasedMethod(Class root, Method method)
           
 ValueInjector[] getParams()
           
 Object[] injectArguments(HttpRequest input, HttpResponse response)
          Create the arguments that would be used to invoke the method in the context of an HTTP request.
 Object invoke(HttpRequest request, HttpResponse httpResponse, Object resource)
          Invoke on a method in the context of an HTTP request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected Method method

invokedMethod

protected Method invokedMethod

rootClass

protected Class rootClass

params

protected ValueInjector[] params

factory

protected ResteasyProviderFactory factory
Constructor Detail

MethodInjectorImpl

public MethodInjectorImpl(Class root,
                          Method method,
                          ResteasyProviderFactory factory)
Method Detail

findInterfaceBasedMethod

public static Method findInterfaceBasedMethod(Class root,
                                              Method method)

getParams

public ValueInjector[] getParams()
Specified by:
getParams in interface MethodInjector

injectArguments

public 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 interface MethodInjector
Returns:

invoke

public Object invoke(HttpRequest request,
                     HttpResponse httpResponse,
                     Object resource)
              throws Failure,
                     ApplicationException,
                     WebApplicationException
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 interface MethodInjector
Returns:
Throws:
Failure
ApplicationException
WebApplicationException


Copyright © 2011. All Rights Reserved.