org.resteasy
Class MethodInjectorImpl

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

public class MethodInjectorImpl
extends java.lang.Object
implements MethodInjector

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  ResteasyProviderFactory factory
           
protected  PathParamIndex index
           
protected  java.lang.reflect.Method method
           
protected  ValueInjector[] params
           
 
Constructor Summary
MethodInjectorImpl(java.lang.reflect.Method method, PathParamIndex index, ResteasyProviderFactory factory)
           
 
Method Summary
 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.
 javax.ws.rs.core.Response invoke(HttpRequest request, HttpResponse httpResponse, java.lang.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 java.lang.reflect.Method method

params

protected ValueInjector[] params

index

protected PathParamIndex index

factory

protected ResteasyProviderFactory factory
Constructor Detail

MethodInjectorImpl

public MethodInjectorImpl(java.lang.reflect.Method method,
                          PathParamIndex index,
                          ResteasyProviderFactory factory)
Method Detail

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

invoke

public javax.ws.rs.core.Response invoke(HttpRequest request,
                                        HttpResponse httpResponse,
                                        java.lang.Object resource)
                                 throws Failure
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


Copyright © 2008. All Rights Reserved.