ApplicationEngineEnvironment

interface ApplicationEngineEnvironment : 
    ApplicationEnvironment

Represents an environment in which engine runs

Properties

application

abstract val application: Application

Running Application

connectors

abstract val connectors: List<EngineConnectorConfig>

Connectors that describers where and how server should listen

Inherited 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).

Functions

start

abstract fun start(): Unit

Starts ApplicationEngineEnvironment and creates an application

stop

abstract fun stop(): Unit

Stops ApplicationEngineEnvironment and destroys any running application

Inheritors

ApplicationEngineEnvironmentReloading

class ApplicationEngineEnvironmentReloading : 
    ApplicationEngineEnvironment

Implements ApplicationEngineEnvironment by loading an Application from a folder or jar.