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:LifeCycle
Starts the lifecyle component.- Specified by:
start
in interfaceLifeCycle<T extends ApplicationContextLifeCycle>
- Returns:
- This lifecycle component
-
stop
Description copied from interface:LifeCycle
Stops the life cycle component.- Specified by:
stop
in interfaceLifeCycle<T extends ApplicationContextLifeCycle>
- Returns:
- This lifecycle component
-