public class PerRequestResourceProvider extends Object implements ResourceProvider
Modifier and Type | Method and Description |
---|---|
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 Object getInstance(Message m)
ResourceProvider
getInstance
in interface ResourceProvider
m
- the current request messagepublic void releaseInstance(Message m, Object o)
ResourceProvider
releaseInstance
in interface ResourceProvider
m
- the current request messageo
- resource instancepublic Class<?> getResourceClass()
ResourceProvider
getResourceClass
in interface ResourceProvider
public boolean isSingleton()
ResourceProvider
isSingleton
in interface ResourceProvider
Apache CXF