|
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.PerRequestResourceProvider
public class PerRequestResourceProvider
The default per-request resource provider which creates a new resource instance per every request
Constructor Summary | |
---|---|
PerRequestResourceProvider(Class<?> clazz)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerRequestResourceProvider(Class<?> clazz)
Method Detail |
---|
public boolean isSingleton()
isSingleton
in interface ResourceProvider
public Object getInstance(Message m)
getInstance
in interface ResourceProvider
m
- the current request message
protected Object createInstance(Message m)
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 |