org.springframework.integration.bus
Class DefaultChannelFactoryBean

java.lang.Object
  extended by 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

Field Summary
private  org.springframework.context.ApplicationContext applicationContext
           
private  java.lang.String beanName
           
private  MessageChannel channel
           
static java.lang.String CHANNEL_FACTORY_BEAN_NAME
           
private  java.lang.Object initializationMonitor
           
private  java.util.List<ChannelInterceptor> interceptors
           
 
Constructor Summary
DefaultChannelFactoryBean()
           
 
Method Summary
 java.lang.Object getObject()
           
 java.lang.Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setBeanName(java.lang.String beanName)
           
 void setInterceptors(java.util.List<ChannelInterceptor> interceptors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultChannelFactoryBean

public DefaultChannelFactoryBean()
Method Detail

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