public class FlowRefFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<MessageProcessor>, org.springframework.context.ApplicationContextAware, MuleContextAware, Initialisable, Disposable
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
FlowRefFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected MessageProcessor |
createDynamicReferenceMessageProcessor(String name) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
MessageProcessor |
getObject() |
Class<?> |
getObjectType() |
protected MessageProcessor |
getReferencedFlow(String name,
FlowConstruct flowConstruct) |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isSingleton() |
protected MessageProcessor |
lookupReferencedFlowInApplicationContext(String name) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setMuleContext(MuleContext context) |
void |
setName(String name) |
public void setName(String name)
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 void dispose()
Disposable
dispose
in interface Disposable
public MessageProcessor getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<MessageProcessor>
Exception
protected MessageProcessor createDynamicReferenceMessageProcessor(String name) throws MuleException
MuleException
protected MessageProcessor getReferencedFlow(String name, FlowConstruct flowConstruct) throws MuleException
MuleException
protected MessageProcessor lookupReferencedFlowInApplicationContext(String name)
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<MessageProcessor>
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<MessageProcessor>
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 context)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.