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, Christian Tzolov
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
Class<?>
int
getPhase()
boolean
boolean
void
setAutoStartup
(Boolean autoStartup) void
setBeanClassLoader
(ClassLoader classLoader) void
setBeanFactory
(BeanFactory beanFactory) void
setBeanName
(String beanName) void
setChannelResolver
(DestinationResolver<MessageChannel> channelResolver) Specify theDestinationResolver
strategy to use.void
setOutputChannel
(MessageChannel outputChannel) void
setOutputChannelName
(String outputChannelName) void
setPhase
(int phase) void
setPollerMetadata
(PollerMetadata pollerMetadata) void
void
setSendTimeout
(long sendTimeout) void
setSource
(MessageSource<?> source) void
start()
void
stop()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
SourcePollingChannelAdapterFactoryBean
public SourcePollingChannelAdapterFactoryBean()
-
-
Method Details
-
setSource
-
setSendTimeout
public void setSendTimeout(long sendTimeout) -
setOutputChannel
-
setOutputChannelName
-
setPollerMetadata
-
setAutoStartup
-
setPhase
public void setPhase(int phase) -
setRole
-
setChannelResolver
Specify theDestinationResolver
strategy to use. The default is a BeanFactoryChannelResolver.- Parameters:
channelResolver
- The channel resolver.- Since:
- 4.1.3
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
-
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceBeanClassLoaderAware
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<SourcePollingChannelAdapter>
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<SourcePollingChannelAdapter>
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceSmartLifecycle
-
getPhase
public int getPhase()- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
-
isRunning
public boolean isRunning() -
start
public void start() -
stop
public void stop() -
stop
- Specified by:
stop
in interfaceSmartLifecycle
-
destroy
public void destroy()- Specified by:
destroy
in interfaceDisposableBean
-