com.sun.jersey.server.impl.resource
Class PerRequestFactory

java.lang.Object
  extended by com.sun.jersey.server.impl.resource.PerRequestFactory
All Implemented Interfaces:
ComponentProviderFactory<ResourceComponentProvider>, ResourceComponentProviderFactory

public final class PerRequestFactory
extends java.lang.Object
implements ResourceComponentProviderFactory

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
PerRequestFactory(ServerInjectableProviderContext sipc, HttpContext threadLocalHc)
           
 
Method Summary
static void destroy(HttpContext hc)
           
 ResourceComponentProvider getComponentProvider(java.lang.Class c)
          Get the component provider for a class.
 ResourceComponentProvider getComponentProvider(IoCComponentProvider icp, java.lang.Class c)
          Get the resource class component provider.
 ComponentScope getScope(java.lang.Class c)
          Get the scope of the resource class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerRequestFactory

public PerRequestFactory(@Context
                         ServerInjectableProviderContext sipc,
                         @Context
                         HttpContext threadLocalHc)
Method Detail

destroy

public static void destroy(HttpContext hc)

getScope

public ComponentScope getScope(java.lang.Class c)
Description copied from interface: ResourceComponentProviderFactory
Get the scope of the resource class.

Specified by:
getScope in interface ResourceComponentProviderFactory
Parameters:
c - the resource class.
Returns:
the scope.

getComponentProvider

public ResourceComponentProvider getComponentProvider(java.lang.Class c)
Description copied from interface: ComponentProviderFactory
Get the component provider for a class.

Specified by:
getComponentProvider in interface ComponentProviderFactory<ResourceComponentProvider>
Parameters:
c - the class
Returns:
the component provider for the class

getComponentProvider

public ResourceComponentProvider getComponentProvider(IoCComponentProvider icp,
                                                      java.lang.Class c)
Description copied from interface: ResourceComponentProviderFactory
Get the resource class component provider.

Specified by:
getComponentProvider in interface ResourceComponentProviderFactory
Parameters:
icp - the underlying IoC component provider.
c - the resource class
Returns:
the resource class component provider.


Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.