Class DefaultBinderFactory

java.lang.Object
org.springframework.cloud.stream.binder.DefaultBinderFactory
All Implemented Interfaces:
BinderFactory

public class DefaultBinderFactory extends Object implements BinderFactory
Default BinderFactory implementation.
Author:
Marius Bogoevici, Ilayaperumal Gopinathan, Gary Russell, Oleg Zhurakousky, Soby Chacko, Artem Bilan, Anshul Mehra, Chris Bono, Byungjun You, Omer Celik
  • Field Details

    • logger

      protected final org.apache.commons.logging.Log logger
    • DEFAULT_PHASE

      static final int DEFAULT_PHASE
      See Also:
  • Constructor Details

  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • setDefaultBinder

      public void setDefaultBinder(String defaultBinder)
    • setListeners

      public void setListeners(Collection<DefaultBinderFactory.Listener> listeners)
    • destroy

      public void destroy()
    • start

      public void start()
    • stop

      public void stop()
    • isRunning

      public boolean isRunning()
    • getBinder

      public <T> Binder<T,?,?> getBinder(String name, Class<? extends T> bindingTargetType)
      Description copied from interface: BinderFactory
      Returns the binder instance associated with the given configuration name. Instance caching is a requirement, and implementations must return the same instance on subsequent invocations with the same arguments.
      Specified by:
      getBinder in interface BinderFactory
      Type Parameters:
      T - the primary binding type
      Parameters:
      name - the name of a binder configuration
      bindingTargetType - binding target type
      Returns:
      the binder instance
    • isAutoStartup

      default boolean isAutoStartup()
    • isPauseable

      default boolean isPauseable()
    • stop

      default void stop(Runnable arg0)
    • getPhase

      default int getPhase()