Package org.apache.cxf.cdi
Class PerRequestResourceProvider
java.lang.Object
org.apache.cxf.cdi.PerRequestResourceProvider
- All Implemented Interfaces:
ResourceProvider
-
Method Summary
Modifier and TypeMethodDescriptionReturns the resource instance which will handle the current requestClass<?>Returns the Class of the resourcebooleanIndicates if the managed resource is a singletonvoidreleaseInstance(Message m, Object o) Releases the resource instance if needed
-
Method Details
-
getInstance
Description copied from interface:ResourceProviderReturns the resource instance which will handle the current request- Specified by:
getInstancein interfaceResourceProvider- Parameters:
m- the current request message- Returns:
- resource instance
-
releaseInstance
Description copied from interface:ResourceProviderReleases the resource instance if needed- Specified by:
releaseInstancein interfaceResourceProvider- Parameters:
m- the current request messageo- resource instance
-
getResourceClass
Description copied from interface:ResourceProviderReturns the Class of the resource- Specified by:
getResourceClassin interfaceResourceProvider- Returns:
-
isSingleton
public boolean isSingleton()Description copied from interface:ResourceProviderIndicates if the managed resource is a singleton- Specified by:
isSingletonin interfaceResourceProvider- Returns:
-