com.sun.jersey.server.impl.resource
Class PerRequestFactory
java.lang.Object
com.sun.jersey.server.impl.resource.PerRequestFactory
- All Implemented Interfaces:
- ComponentProviderFactory<ResourceComponentProvider>, ResourceComponentProviderFactory
public final class PerRequestFactory
- extends Object
- implements ResourceComponentProviderFactory
- Author:
- Paul.Sandoz@Sun.Com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerRequestFactory
public PerRequestFactory(@Context
ServerInjectableProviderContext sipc,
@Context
HttpContext threadLocalHc)
destroy
public static void destroy(HttpContext hc)
getScope
public ComponentScope getScope(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(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,
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 © 2013 Oracle Corporation. All Rights Reserved.