org.springframework.integration.config
Class AbstractSimpleMessageHandlerFactoryBean

java.lang.Object
  extended by org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
All Implemented Interfaces:
BeanFactoryAware, FactoryBean<MessageHandler>
Direct Known Subclasses:
ExpressionControlBusFactoryBean, FilterFactoryBean, GroovyControlBusFactoryBean, RouterFactoryBean, ServiceActivatorFactoryBean, SplitterFactoryBean, TransformerFactoryBean

public abstract class AbstractSimpleMessageHandlerFactoryBean
extends java.lang.Object
implements FactoryBean<MessageHandler>, BeanFactoryAware


Constructor Summary
AbstractSimpleMessageHandlerFactoryBean()
           
 
Method Summary
protected abstract  MessageHandler createHandler()
           
protected  MessageHandler createHandlerInternal()
           
protected  BeanFactory getBeanFactory()
           
 MessageHandler getObject()
           
 java.lang.Class<? extends MessageHandler> getObjectType()
           
 boolean isSingleton()
           
 void setBeanFactory(BeanFactory beanFactory)
           
 void setOrder(java.lang.Integer order)
           
 void setOutputChannel(MessageChannel outputChannel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimpleMessageHandlerFactoryBean

public AbstractSimpleMessageHandlerFactoryBean()
Method Detail

setOutputChannel

public void setOutputChannel(MessageChannel outputChannel)

setOrder

public void setOrder(java.lang.Integer order)

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException

getBeanFactory

protected BeanFactory getBeanFactory()

getObject

public MessageHandler getObject()
                         throws java.lang.Exception
Specified by:
getObject in interface FactoryBean<MessageHandler>
Throws:
java.lang.Exception

createHandlerInternal

protected final MessageHandler createHandlerInternal()

createHandler

protected abstract MessageHandler createHandler()

getObjectType

public java.lang.Class<? extends MessageHandler> getObjectType()
Specified by:
getObjectType in interface FactoryBean<MessageHandler>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<MessageHandler>