public class PerRequestResourceProvider extends Object implements ResourceProvider
Constructor and Description |
---|
PerRequestResourceProvider(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected Object |
createInstance(Message m) |
Object |
getInstance(Message m)
Returns the resource instance which will handle the current request
|
Class<?> |
getResourceClass()
Returns the Class of the resource
|
boolean |
isSingleton()
Indicates if the managed resource is a singleton
|
void |
releaseInstance(Message m,
Object o)
Releases the resource instance if needed
|
public PerRequestResourceProvider(Class<?> clazz)
public boolean isSingleton()
isSingleton
in interface ResourceProvider
public Object getInstance(Message m)
getInstance
in interface ResourceProvider
m
- the current request messagepublic void releaseInstance(Message m, Object o)
releaseInstance
in interface ResourceProvider
m
- the current request messageo
- resource instancepublic Class<?> getResourceClass()
getResourceClass
in interface ResourceProvider
Apache CXF