public class AdapterManager extends ConfigurableLifecyleBase implements org.springframework.context.ApplicationContextAware, AutoCloseable
ConfiguringLifecycleProcessor
ConfigurableLifecycle.BootState
log
Constructor and Description |
---|
AdapterManager() |
Modifier and Type | Method and Description |
---|---|
void |
addStartAdapterThread(Runnable runnable) |
void |
addStopAdapterThread(Runnable runnable) |
void |
close() |
void |
configure() |
Adapter |
getAdapter(int i) |
Adapter |
getAdapter(String name) |
List<Adapter> |
getAdapterList() |
Map<String,Adapter> |
getAdapters() |
List<Runnable> |
getStartAdapterThreads() |
List<Runnable> |
getStopAdapterThreads() |
void |
registerAdapter(Adapter adapter) |
void |
removeStartAdapterThread(Runnable runnable) |
void |
removeStopAdapterThread(Runnable runnable) |
void |
setAdapterLifecycleWrappers(List<? extends AdapterLifecycleWrapperBase> adapterLifecycleWrappers) |
void |
start()
Inherited from the Spring
Lifecycle interface. |
void |
stop()
Stops all Adapters registered in this manager.
|
String |
toString() |
void |
unRegisterAdapter(Adapter adapter) |
getState, updateState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setApplicationContext
inState, isRunning
public void registerAdapter(Adapter adapter)
public void unRegisterAdapter(Adapter adapter)
public void setAdapterLifecycleWrappers(List<? extends AdapterLifecycleWrapperBase> adapterLifecycleWrappers)
public void addStartAdapterThread(Runnable runnable)
public void removeStartAdapterThread(Runnable runnable)
public void addStopAdapterThread(Runnable runnable)
public void removeStopAdapterThread(Runnable runnable)
public Adapter getAdapter(int i)
public void configure()
configure
in interface ConfigurableLifecycle
public void start()
Lifecycle
interface.
Upon registering all Beans in the ApplicationContext (Configuration)
the LifecycleProcessor
will trigger this method.
Starts all Adapters registered in this manager.start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public void close()
close
in interface AutoCloseable
Copyright © 2023 Frank!Framework. All rights reserved.