public class SingletonResourceProvider extends Object implements ResourceProvider
Constructor and Description |
---|
SingletonResourceProvider(Object o) |
SingletonResourceProvider(Object o,
boolean callPostConstruct) |
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 SingletonResourceProvider(Object o, boolean callPostConstruct)
public SingletonResourceProvider(Object o)
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