|
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.spring.SpringResourceFactory
public class SpringResourceFactory
The ResourceProvider implementation which delegates to ApplicationContext to manage the life-cycle of the resource
Constructor Summary | |
---|---|
SpringResourceFactory()
|
|
SpringResourceFactory(String name)
|
Method Summary | |
---|---|
protected boolean |
doCallPreDestroy()
|
org.springframework.context.ApplicationContext |
getApplicationContext()
|
Object |
getInstance(Message m)
Returns the resource instance which will handle the current request |
Class<?> |
getResourceClass()
Returns the Class of the resource |
protected void |
initInstance(Message m,
Object instance)
|
boolean |
isCallPostConstruct()
|
boolean |
isCallPreDestroy()
|
boolean |
isSingleton()
Indicates if the managed resource is a singleton |
void |
releaseInstance(Message m,
Object o)
Releases the resource instance if needed |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setBeanId(String serviceBeanId)
|
void |
setCallPostConstruct(boolean callPostConstruct)
|
void |
setCallPreDestroy(boolean callPreDestroy)
|
void |
setPostConstructMethodName(String postConstructMethodName)
|
void |
setPreDestroyMethodName(String preDestroyMethodName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringResourceFactory()
public SpringResourceFactory(String name)
Method Detail |
---|
public Object getInstance(Message m)
getInstance
in interface ResourceProvider
m
- the current request message
protected void initInstance(Message m, Object instance)
public boolean isSingleton()
isSingleton
in interface ResourceProvider
public void releaseInstance(Message m, Object o)
releaseInstance
in interface ResourceProvider
m
- the current request messageo
- resource instanceprotected boolean doCallPreDestroy()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setBeanId(String serviceBeanId)
public org.springframework.context.ApplicationContext getApplicationContext()
public Class<?> getResourceClass()
getResourceClass
in interface ResourceProvider
public void setCallPostConstruct(boolean callPostConstruct)
public boolean isCallPostConstruct()
public void setCallPreDestroy(boolean callPreDestroy)
public boolean isCallPreDestroy()
public void setPreDestroyMethodName(String preDestroyMethodName)
public void setPostConstructMethodName(String postConstructMethodName)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |