public abstract class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler> extends Object implements FactoryBean<MessageHandler>, BeanFactoryAware
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
AbstractSimpleMessageHandlerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected abstract H |
createHandler() |
protected H |
createHandlerInternal() |
protected BeanFactory |
getBeanFactory() |
H |
getObject() |
Class<? extends MessageHandler> |
getObjectType() |
boolean |
isSingleton() |
void |
setAdviceChain(List<org.aopalliance.aop.Advice> adviceChain) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setComponentName(String componentName)
Sets the name of the handler component.
|
void |
setOrder(Integer order) |
void |
setOutputChannel(MessageChannel outputChannel) |
public AbstractSimpleMessageHandlerFactoryBean()
public void setOutputChannel(MessageChannel outputChannel)
public void setOrder(Integer order)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
protected BeanFactory getBeanFactory()
public void setAdviceChain(List<org.aopalliance.aop.Advice> adviceChain)
public void setComponentName(String componentName)
componentName
- The component name.public H getObject() throws Exception
getObject
in interface FactoryBean<MessageHandler>
Exception
protected final H createHandlerInternal()
protected abstract H createHandler()
public Class<? extends MessageHandler> getObjectType()
getObjectType
in interface FactoryBean<MessageHandler>
public boolean isSingleton()
isSingleton
in interface FactoryBean<MessageHandler>