Interface LifeCycle<T extends LifeCycle<T>>
- Type Parameters:
T- The type
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Subinterfaces:
ApplicationContext, ApplicationContextLifeCycle<T>, BeanContext, ConfigurableApplicationContext, ConfigurableBeanContext, Environment
- All Known Implementing Classes:
AbstractConcurrentCustomScope, DefaultBeanContext
A life cycle interface providing a start method and extending Closeable which provides a close() method for
termination.
Components can implement this interface
- Since:
- 1.0
-
Method Summary
-
Method Details
-
isRunning
boolean isRunning()- Returns:
- Whether the component is running
-
start
-
stop
-
close
default void close()Delegates tostop().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
refresh
-