|
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 | |
---|---|
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 |
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)
|
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
public boolean isSingleton()
isSingleton
in interface ResourceProvider
public void releaseInstance(Message m, Object o)
releaseInstance
in interface ResourceProvider
m
- the current request messageo
- resource instancepublic 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
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |