org.springframework.integration.bus
Class DefaultChannelFactoryBean
java.lang.Object
org.springframework.integration.bus.DefaultChannelFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.FactoryBean, org.springframework.context.ApplicationContextAware
public class DefaultChannelFactoryBean
- extends java.lang.Object
- implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.BeanNameAware
Creates a channel by delegating to the "channelFactory" bean defined
within the ApplicationContext
or else the default implementation
(QueueChannelFactory).
As a FactoryBean
, this class is solely intended to be used within
an ApplicationContext.
- Author:
- Marius Bogoevici, Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHANNEL_FACTORY_BEAN_NAME
public static final java.lang.String CHANNEL_FACTORY_BEAN_NAME
- See Also:
- Constant Field Values
beanName
private volatile java.lang.String beanName
interceptors
private volatile java.util.List<ChannelInterceptor> interceptors
applicationContext
private volatile org.springframework.context.ApplicationContext applicationContext
channel
private volatile MessageChannel channel
initializationMonitor
private final java.lang.Object initializationMonitor
DefaultChannelFactoryBean
public DefaultChannelFactoryBean()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
setBeanName
public void setBeanName(java.lang.String beanName)
- Specified by:
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
setInterceptors
public void setInterceptors(java.util.List<ChannelInterceptor> interceptors)
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean