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 current message bus' configured ChannelFactory. Tries to retrieve the ChannelFactory from the single MessageBus defined in the ApplicationContext. As a FactoryBean, this class is solely intended to be used within an ApplicationContext.

Author:
Marius Bogoevici, Mark Fisher

Field Summary
private  java.lang.String beanName
           
private  ChannelFactory channelFactory
           
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

beanName

private volatile java.lang.String beanName

channelFactory

private volatile ChannelFactory channelFactory

interceptors

private volatile java.util.List<ChannelInterceptor> interceptors
Constructor Detail

DefaultChannelFactoryBean

public DefaultChannelFactoryBean()
Method Detail

setBeanName

public void setBeanName(java.lang.String beanName)
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

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