Class AdapterManager

java.lang.Object
org.frankframework.lifecycle.ConfigurableLifecyleBase
org.frankframework.configuration.AdapterManager
All Implemented Interfaces:
AutoCloseable, ConfigurableLifecycle, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

public class AdapterManager extends ConfigurableLifecyleBase implements org.springframework.context.ApplicationContextAware, AutoCloseable
configure/start/stop lifecycles are managed by Spring. See ConfiguringLifecycleProcessor
  • Constructor Details

    • AdapterManager

      public AdapterManager()
  • Method Details

    • registerAdapter

      public void registerAdapter(Adapter adapter)
    • unRegisterAdapter

      public void unRegisterAdapter(Adapter adapter)
    • setAdapterLifecycleWrappers

      public void setAdapterLifecycleWrappers(List<? extends AdapterLifecycleWrapperBase> adapterLifecycleWrappers)
    • addStartAdapterThread

      public void addStartAdapterThread(Runnable runnable)
    • removeStartAdapterThread

      public void removeStartAdapterThread(Runnable runnable)
    • getStartAdapterThreads

      public List<Runnable> getStartAdapterThreads()
    • addStopAdapterThread

      public void addStopAdapterThread(Runnable runnable)
    • removeStopAdapterThread

      public void removeStopAdapterThread(Runnable runnable)
    • getStopAdapterThreads

      public List<Runnable> getStopAdapterThreads()
    • getAdapter

      public Adapter getAdapter(String name)
    • getAdapter

      public Adapter getAdapter(int i)
    • getAdapters

      public final Map<String,Adapter> getAdapters()
    • getAdapterList

      public List<Adapter> getAdapterList()
    • configure

      public void configure()
      Description copied from interface: ConfigurableLifecycle
      Configure this component.

      In the case of a container, this will propagate the start signal to all components that apply.

      Specified by:
      configure in interface ConfigurableLifecycle
    • start

      public void start()
      Inherited from the Spring Lifecycle interface. Upon registering all Beans in the ApplicationContext (Configuration) the LifecycleProcessor will trigger this method. Starts all Adapters registered in this manager.
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Stops all Adapters registered in this manager.
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware