ApplicationEnvironment

interface ApplicationEnvironment

Represents an environment in which Application runs

Properties

classLoader

abstract val classLoader: ClassLoader

ClassLoader used to load application.

config

abstract val config: ApplicationConfig

Configuration for the Application

log

abstract val log: Logger

Instance of Logger to be used for logging.

monitor

abstract val monitor: ApplicationEvents

Provides events on Application lifecycle

parentCoroutineContext

abstract val parentCoroutineContext: <ERROR CLASS>

Parent coroutine context for an application

rootPath

abstract val rootPath: String

Application’s root path (prefix, context path in servlet container).

Inheritors

ApplicationEngineEnvironment

interface ApplicationEngineEnvironment : 
    ApplicationEnvironment

Represents an environment in which engine runs