T - public interface EmbeddedApplication<T extends EmbeddedApplication>
extends io.micronaut.context.ApplicationContextLifeCycle<T>
An EmbeddedApplication is a runnable application that starts and manages the ApplicationContext.
This interface is the parent interface of EmbeddedServer which formalizes the concept of a
server that exposes a port and address
Applications that did not expose a port and address (messaging applications, CLI applications etc. may wish to use this interface instead
EmbeddedServer| Modifier and Type | Method and Description |
|---|---|
ApplicationConfiguration |
getApplicationConfiguration() |
io.micronaut.context.ApplicationContext |
getApplicationContext() |
default io.micronaut.context.env.Environment |
getEnvironment() |
default boolean |
isForceExit()
Most servers shutdown cleanly, however some integrations make require a forced exist.
|
default boolean |
isServer()
This method returns whether the application is a server application or not.
|
io.micronaut.context.ApplicationContext getApplicationContext()
getApplicationContext in interface io.micronaut.context.ApplicationContextProviderApplicationContext for the serverApplicationConfiguration getApplicationConfiguration()
ApplicationConfiguration instancedefault io.micronaut.context.env.Environment getEnvironment()
Environment for the serverdefault boolean isServer()
default boolean isForceExit()