Package io.micronaut.context
Interface ApplicationContextLifeCycle<T extends ApplicationContextLifeCycle>
- Type Parameters:
T- The concrete type
- All Superinterfaces:
ApplicationContextProvider,AutoCloseable,Closeable,LifeCycle
- All Known Subinterfaces:
EmbeddedApplication<T>,EmbeddedServer,NettyEmbeddedServer
- All Known Implementing Classes:
MessagingApplication,NettyHttpServer
public interface ApplicationContextLifeCycle<T extends ApplicationContextLifeCycle>
extends ApplicationContextProvider, LifeCycle
An interface for classes that manage the
ApplicationContext life cycle and shut it down when the class is shutdown.-
Method Summary
Methods inherited from interface io.micronaut.context.ApplicationContextProvider
getApplicationContext
-
Method Details
-
start
Description copied from interface:LifeCycleStarts the lifecyle component.- Specified by:
startin interfaceLifeCycle<T extends ApplicationContextLifeCycle>- Returns:
- This lifecycle component
-
stop
Description copied from interface:LifeCycleStops the life cycle component.- Specified by:
stopin interfaceLifeCycle<T extends ApplicationContextLifeCycle>- Returns:
- This lifecycle component
-