|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
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(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 ResourceProviderm - the current request message
public boolean isSingleton()
isSingleton in interface ResourceProvider
public void releaseInstance(Message m,
Object o)
releaseInstance in interface ResourceProviderm - the current request messageo - resource instance
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
BeansExceptionpublic void setBeanId(String serviceBeanId)
public 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 | |||||||||