public interface 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
|
Object getInstance(Message m)
m
- the current request messagevoid releaseInstance(Message m, Object o)
m
- the current request messageo
- resource instanceClass<?> getResourceClass()
boolean isSingleton()
Apache CXF