Class SourcePollingChannelAdapterFactoryBean
java.lang.Object
org.springframework.integration.config.SourcePollingChannelAdapterFactoryBean
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- FactoryBean<SourcePollingChannelAdapter>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
public class SourcePollingChannelAdapterFactoryBean
extends Object
implements FactoryBean<SourcePollingChannelAdapter>, BeanFactoryAware, BeanNameAware, BeanClassLoaderAware, InitializingBean, SmartLifecycle, DisposableBean
FactoryBean for creating a SourcePollingChannelAdapter instance.
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
- 
Field SummaryFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoiddestroy()Class<?>intgetPhase()booleanbooleanvoidsetAutoStartup(Boolean autoStartup) voidsetBeanClassLoader(ClassLoader classLoader) voidsetBeanFactory(BeanFactory beanFactory) voidsetBeanName(String beanName) voidsetChannelResolver(DestinationResolver<MessageChannel> channelResolver) Specify theDestinationResolverstrategy to use.voidsetOutputChannel(MessageChannel outputChannel) voidsetOutputChannelName(String outputChannelName) voidsetPhase(int phase) voidsetPollerMetadata(PollerMetadata pollerMetadata) voidvoidsetSendTimeout(long sendTimeout) voidsetSource(MessageSource<?> source) voidstart()voidstop()voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
SourcePollingChannelAdapterFactoryBeanpublic SourcePollingChannelAdapterFactoryBean()
 
- 
- 
Method Details- 
setSource
- 
setSendTimeoutpublic void setSendTimeout(long sendTimeout) 
- 
setOutputChannel
- 
setOutputChannelName
- 
setPollerMetadata
- 
setAutoStartup
- 
setPhasepublic void setPhase(int phase) 
- 
setRole
- 
setChannelResolverSpecify theDestinationResolverstrategy to use. The default is a BeanFactoryChannelResolver.- Parameters:
- channelResolver- The channel resolver.
- Since:
- 4.1.3
 
- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
 
- 
setBeanClassLoader- Specified by:
- setBeanClassLoaderin interface- BeanClassLoaderAware
 
- 
setBeanName- Specified by:
- setBeanNamein interface- BeanNameAware
 
- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- InitializingBean
 
- 
getObject- Specified by:
- getObjectin interface- FactoryBean<SourcePollingChannelAdapter>
 
- 
getObjectType- Specified by:
- getObjectTypein interface- FactoryBean<SourcePollingChannelAdapter>
 
- 
isAutoStartuppublic boolean isAutoStartup()- Specified by:
- isAutoStartupin interface- SmartLifecycle
 
- 
getPhasepublic int getPhase()- Specified by:
- getPhasein interface- Phased
- Specified by:
- getPhasein interface- SmartLifecycle
 
- 
isRunningpublic boolean isRunning()
- 
startpublic void start()
- 
stoppublic void stop()
- 
stop- Specified by:
- stopin interface- SmartLifecycle
 
- 
destroypublic void destroy()- Specified by:
- destroyin interface- DisposableBean
 
 
-