|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider
public class SingletonResourceProvider
The default singleton resource provider which returns the same resource instance per every request
Constructor Summary | |
---|---|
SingletonResourceProvider(Object o)
|
|
SingletonResourceProvider(Object o,
boolean callPostConstruct)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingletonResourceProvider(Object o, boolean callPostConstruct)
public SingletonResourceProvider(Object o)
Method Detail |
---|
public boolean isSingleton()
isSingleton
in interface ResourceProvider
public Object getInstance(Message m)
getInstance
in interface ResourceProvider
m
- the current request message
public 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 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |