public class SpringResourceFactory extends Object implements ResourceProvider, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
SpringResourceFactory() |
SpringResourceFactory(String name) |
Modifier and Type | Method and Description |
---|---|
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) |
public SpringResourceFactory()
public SpringResourceFactory(String name)
public Object getInstance(Message m)
getInstance
in interface ResourceProvider
m
- the current request messagepublic 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