Package io.micronaut.context
Interface ApplicationContextLifeCycle<T extends ApplicationContextLifeCycle>
-
- Type Parameters:
T
- The concrete type
- All Superinterfaces:
ApplicationContextProvider
,java.lang.AutoCloseable
,java.io.Closeable
,LifeCycle
public interface ApplicationContextLifeCycle<T extends ApplicationContextLifeCycle> extends ApplicationContextProvider, LifeCycle
An interface for classes that manage theApplicationContext
life cycle and shut it down when the class is shutdown.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default T
start()
Starts the lifecyle component.default T
stop()
Stops the life cycle component.-
Methods inherited from interface io.micronaut.context.ApplicationContextProvider
getApplicationContext
-
-