Class SourcePollingChannelAdapterFactoryBean

java.lang.Object
org.springframework.integration.config.SourcePollingChannelAdapterFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<SourcePollingChannelAdapter>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

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, org.springframework.beans.factory.DisposableBean
FactoryBean for creating a SourcePollingChannelAdapter instance.
  • Constructor Details

  • Method Details

    • setSource

      public void setSource​(MessageSource<?> source)
    • setSendTimeout

      public void setSendTimeout​(long sendTimeout)
    • setOutputChannel

      public void setOutputChannel​(org.springframework.messaging.MessageChannel outputChannel)
    • setOutputChannelName

      public void setOutputChannelName​(java.lang.String outputChannelName)
    • setPollerMetadata

      public void setPollerMetadata​(PollerMetadata pollerMetadata)
    • setAutoStartup

      public void setAutoStartup​(java.lang.Boolean autoStartup)
    • setPhase

      public void setPhase​(int phase)
    • setRole

      public void setRole​(java.lang.String role)
    • setChannelResolver

      public void setChannelResolver​(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
      Specify the DestinationResolver strategy to use. The default is a BeanFactoryChannelResolver.
      Parameters:
      channelResolver - The channel resolver.
      Since:
      4.1.3
    • setBeanFactory

      public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
    • setBeanClassLoader

      public void setBeanClassLoader​(java.lang.ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • setBeanName

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

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getObject

      public SourcePollingChannelAdapter getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<SourcePollingChannelAdapter>
    • getObjectType

      public java.lang.Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<SourcePollingChannelAdapter>
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • stop

      public void stop​(java.lang.Runnable callback)
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean