Package org.frankframework.configuration
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
-
Field Summary
Fields inherited from class org.frankframework.lifecycle.ConfigurableLifecyleBase
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStartAdapterThread
(Runnable runnable) void
addStopAdapterThread
(Runnable runnable) void
close()
void
Configure this component.getAdapter
(int i) getAdapter
(String name) org.springframework.context.ApplicationContext
void
registerAdapter
(Adapter adapter) void
removeStartAdapterThread
(Runnable runnable) void
removeStopAdapterThread
(Runnable runnable) void
setAdapterLifecycleWrappers
(List<? extends AdapterLifecycleWrapperBase> adapterLifecycleWrappers) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
start()
Inherited from the SpringLifecycle
interface.void
stop()
Stops all Adapters registered in this manager.toString()
void
unRegisterAdapter
(Adapter adapter) Methods inherited from class org.frankframework.lifecycle.ConfigurableLifecyleBase
getState, inState, isRunning, updateState
-
Constructor Details
-
AdapterManager
public AdapterManager()
-
-
Method Details
-
registerAdapter
-
unRegisterAdapter
-
setAdapterLifecycleWrappers
public void setAdapterLifecycleWrappers(List<? extends AdapterLifecycleWrapperBase> adapterLifecycleWrappers) -
addStartAdapterThread
-
removeStartAdapterThread
-
getStartAdapterThreads
-
addStopAdapterThread
-
removeStopAdapterThread
-
getStopAdapterThreads
-
getAdapter
-
getAdapter
-
getAdapters
-
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 interfaceConfigurableLifecycle
-
start
public void start()Inherited from the SpringLifecycle
interface. Upon registering all Beans in the ApplicationContext (Configuration) theLifecycleProcessor
will trigger this method. Starts all Adapters registered in this manager.- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()Stops all Adapters registered in this manager.- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-