org.jboss.resteasy.core
Class ResourceLocator

java.lang.Object
  extended by org.jboss.resteasy.core.ResourceLocator
All Implemented Interfaces:
ResourceInvoker

public class ResourceLocator
extends java.lang.Object
implements ResourceInvoker

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  java.util.concurrent.ConcurrentHashMap<java.lang.Class,Registry> cachedSubresources
           
protected  InjectorFactory injector
           
protected  java.lang.reflect.Method method
           
protected  MethodInjector methodInjector
           
protected  ResteasyProviderFactory providerFactory
           
protected  ResourceFactory resource
           
 
Constructor Summary
ResourceLocator(ResourceFactory resource, InjectorFactory injector, ResteasyProviderFactory providerFactory, java.lang.Class root, java.lang.reflect.Method method)
           
 
Method Summary
protected  java.lang.Object createResource(HttpRequest request, HttpResponse response)
           
protected  java.lang.Object createResource(HttpRequest request, HttpResponse response, java.lang.Object locator)
           
 java.lang.reflect.Method getMethod()
           
 ServerResponse invoke(HttpRequest request, HttpResponse response)
           
 ServerResponse invoke(HttpRequest request, HttpResponse response, java.lang.Object locator)
           
protected  ServerResponse invokeOnTargetObject(HttpRequest request, HttpResponse response, java.lang.Object target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

injector

protected InjectorFactory injector

methodInjector

protected MethodInjector methodInjector

resource

protected ResourceFactory resource

providerFactory

protected ResteasyProviderFactory providerFactory

method

protected java.lang.reflect.Method method

cachedSubresources

protected java.util.concurrent.ConcurrentHashMap<java.lang.Class,Registry> cachedSubresources
Constructor Detail

ResourceLocator

public ResourceLocator(ResourceFactory resource,
                       InjectorFactory injector,
                       ResteasyProviderFactory providerFactory,
                       java.lang.Class root,
                       java.lang.reflect.Method method)
Method Detail

createResource

protected java.lang.Object createResource(HttpRequest request,
                                          HttpResponse response)

createResource

protected java.lang.Object createResource(HttpRequest request,
                                          HttpResponse response,
                                          java.lang.Object locator)

getMethod

public java.lang.reflect.Method getMethod()

invoke

public ServerResponse invoke(HttpRequest request,
                             HttpResponse response)
Specified by:
invoke in interface ResourceInvoker

invoke

public ServerResponse invoke(HttpRequest request,
                             HttpResponse response,
                             java.lang.Object locator)
Specified by:
invoke in interface ResourceInvoker

invokeOnTargetObject

protected ServerResponse invokeOnTargetObject(HttpRequest request,
                                              HttpResponse response,
                                              java.lang.Object target)


Copyright © 2010. All Rights Reserved.