org.mule.config.spring.factories
Class FlowRefFactoryBean

java.lang.Object
  extended by org.mule.config.spring.factories.FlowRefFactoryBean
All Implemented Interfaces:
MuleContextAware, Disposable, Initialisable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<MessageProcessor>, org.springframework.context.ApplicationContextAware

public class FlowRefFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<MessageProcessor>, org.springframework.context.ApplicationContextAware, MuleContextAware, Initialisable, Disposable


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
FlowRefFactoryBean()
           
 
Method Summary
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)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowRefFactoryBean

public FlowRefFactoryBean()
Method Detail

setName

public void setName(String name)

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an 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.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from

dispose

public void dispose()
Description copied from interface: Disposable
A lifecycle method where implementor should free up any resources. If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions.

Specified by:
dispose in interface Disposable

getObject

public MessageProcessor getObject()
                           throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<MessageProcessor>
Throws:
Exception

createDynamicReferenceMessageProcessor

protected MessageProcessor createDynamicReferenceMessageProcessor(String name)
                                                           throws InitialisationException
Throws:
InitialisationException

getReferencedFlow

protected MessageProcessor getReferencedFlow(String name)
                                      throws InitialisationException
Throws:
InitialisationException

lookupReferencedFlowInApplicationContext

protected MessageProcessor lookupReferencedFlowInApplicationContext(String name)

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<MessageProcessor>

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<MessageProcessor>

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware


Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.