public abstract class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler> extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<MessageHandler>, org.springframework.beans.factory.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 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 |
setComponentName(java.lang.String componentName)
Sets the name of the handler component.
|
void |
setOrder(java.lang.Integer order) |
void |
setOutputChannel(MessageChannel outputChannel) |
public AbstractSimpleMessageHandlerFactoryBean()
public void setOutputChannel(MessageChannel outputChannel)
public void setOrder(java.lang.Integer order)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
public void setComponentName(java.lang.String componentName)
componentName
- public H getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<MessageHandler>
java.lang.Exception
protected final H createHandlerInternal()
protected abstract H createHandler()
public java.lang.Class<? extends MessageHandler> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<MessageHandler>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<MessageHandler>