|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.actions.AbstractActionLifecycle org.jboss.soa.esb.actions.AbstractSpringAction
public abstract class AbstractSpringAction
Abstract class for Actions that makes calls to Spring beans.
Usage :
<action name="sayHello" class="xyx.com.SimpleSpringAction" process="process">
<property name="springContextXml" value="spring-context1.xml, spring-context2.xml"/>
</action>
Field Summary | |
---|---|
protected ConfigTree |
configTree
configuration object |
Constructor Summary | |
---|---|
AbstractSpringAction()
Deprecated. Use AbstractSpringAction(ConfigTree) instead |
|
AbstractSpringAction(ConfigTree configTree)
Constructs and instance with storing the passed in ConfigTree instance. |
Method Summary | |
---|---|
void |
destroy()
Destroy the action instance. |
void |
exceptionHandler(Message message,
java.lang.Throwable exception)
Generic Exception handler for Spring Actions. |
protected org.springframework.beans.factory.BeanFactory |
getBeanFactory()
Request a BeanFactory instance from the action. |
void |
initialise()
Initialise the action instance. |
protected void |
initializeSpring()
Initialize Spring IoC |
boolean |
isBeanFactoryNull()
Check to see if Spring Bean factory is null. |
protected void |
logFooter()
Deprecated. |
protected void |
logHeader()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConfigTree configTree
Constructor Detail |
---|
public AbstractSpringAction(ConfigTree configTree)
configTree
- the ConfigTree instance that will be storedpublic AbstractSpringAction()
AbstractSpringAction(ConfigTree)
instead
AbstractSpringAction(ConfigTree)
instead. This is because
the field configTree will be using in the initialise()
method
and will be null this config tree is not saved.
Method Detail |
---|
public void initialise() throws ActionLifecycleException
AbstractActionLifecycle
initialise
in interface ActionLifecycle
initialise
in class AbstractActionLifecycle
ActionLifecycleException
- for errors during initialisation.public boolean isBeanFactoryNull()
public void exceptionHandler(Message message, java.lang.Throwable exception)
message
- exception
- public void destroy() throws ActionLifecycleException
AbstractActionLifecycle
destroy
in interface ActionLifecycle
destroy
in class AbstractActionLifecycle
ActionLifecycleException
protected void initializeSpring() throws ActionLifecycleException
ActionLifecycleException
protected org.springframework.beans.factory.BeanFactory getBeanFactory() throws ActionLifecycleException
ActionLifecycleException
protected void logHeader()
protected void logFooter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |