Spring Integration

org.springframework.integration.config
Class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler>

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

public abstract class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler>
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<MessageHandler>, org.springframework.beans.factory.BeanFactoryAware

Author:
Dave Syer, Oleg Zhurakousky, Gary Russell

Constructor Summary
AbstractSimpleMessageHandlerFactoryBean()
           
 
Method Summary
protected abstract  H createHandler()
           
protected  H createHandlerInternal()
           
protected  org.springframework.beans.factory.BeanFactory getBeanFactory()
           
 H getObject()
           
 java.lang.Class<? extends MessageHandler> getObjectType()
           
 boolean isSingleton()
           
 void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
           
 void setBeanFactory(org.springframework.beans.factory.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(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

getBeanFactory

protected org.springframework.beans.factory.BeanFactory getBeanFactory()

setAdviceChain

public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)

getObject

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

createHandlerInternal

protected final H createHandlerInternal()

createHandler

protected abstract H createHandler()

getObjectType

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

isSingleton

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

Spring Integration