public abstract class AbstractFlowConstructFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<FlowConstruct>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, MuleContextAware, Initialisable
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected AbstractFlowConstruct |
flowConstruct |
protected MuleContext |
muleContext |
PHASE_NAME
Constructor and Description |
---|
AbstractFlowConstructFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected AbstractFlowConstruct |
createFlowConstruct() |
protected abstract AbstractFlowConstructBuilder<? extends AbstractFlowConstructBuilder<?,?>,? extends AbstractFlowConstruct> |
getFlowConstructBuilder() |
FlowConstruct |
getObject() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isSingleton() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setExceptionListener(MessagingExceptionHandler exceptionListener) |
void |
setInitialState(String initialState) |
void |
setMessageSource(MessageSource messageSource) |
void |
setMuleContext(MuleContext muleContext) |
void |
setName(String name) |
protected org.springframework.context.ApplicationContext applicationContext
protected MuleContext muleContext
protected AbstractFlowConstruct flowConstruct
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<FlowConstruct>
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 setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
protected abstract AbstractFlowConstructBuilder<? extends AbstractFlowConstructBuilder<?,?>,? extends AbstractFlowConstruct> getFlowConstructBuilder()
public void setName(String name)
public void setInitialState(String initialState)
public void setMessageSource(MessageSource messageSource)
public void setExceptionListener(MessagingExceptionHandler exceptionListener)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic FlowConstruct getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<FlowConstruct>
Exception
protected AbstractFlowConstruct createFlowConstruct() throws MuleException
MuleException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.