public abstract class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler> extends Object implements FactoryBean<MessageHandler>, ApplicationContextAware, BeanFactoryAware, BeanNameAware, ApplicationEventPublisherAware
| 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() |
protected Class<? extends MessageHandler> |
getPreCreationHandlerType()
Subclasses can override this to return a more specific type before handler creation.
|
boolean |
isSingleton() |
void |
setAdviceChain(List<Advice> adviceChain) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setBeanName(String beanName) |
void |
setChannelResolver(DestinationResolver<MessageChannel> channelResolver) |
void |
setComponentName(String componentName)
Sets the name of the handler component.
|
void |
setOrder(Integer order) |
void |
setOutputChannel(MessageChannel outputChannel) |
public AbstractSimpleMessageHandlerFactoryBean()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void setBeanName(String beanName)
setBeanName in interface BeanNameAwarepublic void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwarepublic void setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
public void setOutputChannel(MessageChannel outputChannel)
public void setOrder(Integer order)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionprotected BeanFactory getBeanFactory()
public void setComponentName(String componentName)
componentName - The component name.public H getObject() throws Exception
getObject in interface FactoryBean<MessageHandler>Exceptionprotected final H createHandlerInternal()
protected abstract H createHandler()
public Class<? extends MessageHandler> getObjectType()
getObjectType in interface FactoryBean<MessageHandler>protected Class<? extends MessageHandler> getPreCreationHandlerType()
public boolean isSingleton()
isSingleton in interface FactoryBean<MessageHandler>