public class SourcePollingChannelAdapterFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<SourcePollingChannelAdapter>, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
SourcePollingChannelAdapterFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
SourcePollingChannelAdapter |
getObject() |
java.lang.Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
boolean |
isSingleton() |
void |
setAutoStartup(boolean autoStartup) |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBeanName(java.lang.String beanName) |
void |
setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
Specify the
DestinationResolver strategy to use. |
void |
setOutputChannel(org.springframework.messaging.MessageChannel outputChannel) |
void |
setOutputChannelName(java.lang.String outputChannelName) |
void |
setPhase(int phase) |
void |
setPollerMetadata(PollerMetadata pollerMetadata) |
void |
setSendTimeout(long sendTimeout) |
void |
setSource(MessageSource<?> source) |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public SourcePollingChannelAdapterFactoryBean()
public void setSource(MessageSource<?> source)
public void setSendTimeout(long sendTimeout)
public void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
public void setOutputChannelName(java.lang.String outputChannelName)
public void setPollerMetadata(PollerMetadata pollerMetadata)
public void setAutoStartup(boolean autoStartup)
public void setPhase(int phase)
public void setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
DestinationResolver strategy to use.
The default is a BeanFactoryChannelResolver.channelResolver - The channel resolver.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarepublic void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setBeanName(java.lang.String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic SourcePollingChannelAdapter getObject() throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<SourcePollingChannelAdapter>java.lang.Exceptionpublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<SourcePollingChannelAdapter>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<SourcePollingChannelAdapter>public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecycle