org.mule.config.spring.factories
Class FlowRefFactoryBean

java.lang.Object
  extended by org.mule.config.spring.factories.FlowRefFactoryBean
All Implemented Interfaces:
MuleContextAware, 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


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
FlowRefFactoryBean()
           
 
Method Summary
 MessageProcessor getObject()
           
 Class<?> getObjectType()
           
protected  MessageProcessor getReferencedMessageProcessor(String name)
           
 void initialise()
          Method used to perform any initialisation work.
 boolean isSingleton()
           
 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

getObject

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

getReferencedMessageProcessor

protected MessageProcessor getReferencedMessageProcessor(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-2012 MuleSoft, Inc.. All Rights Reserved.