ApplicationEngineEnvironmentReloading

class ApplicationEngineEnvironmentReloading(val classLoader: ClassLoader, val log: Logger, val config: ApplicationConfig, val connectors: List<EngineConnectorConfig>, modules: List<Application.() -> Unit>, watchPaths: List<String> = emptyList(), parentCoroutineContext: CoroutineContext = EmptyCoroutineContext, val rootPath: String = "", val developmentMode: Boolean = true) : ApplicationEngineEnvironment

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

watchPaths specifies substrings to match against class path entries to monitor changes in folder/jar and implements hot reloading

Constructors

Link copied to clipboard
fun ApplicationEngineEnvironmentReloading(classLoader: ClassLoader, log: Logger, config: ApplicationConfig, connectors: List<EngineConnectorConfig>, modules: List<Application.() -> Unit>, watchPaths: List<String> = emptyList(), parentCoroutineContext: CoroutineContext = EmptyCoroutineContext, rootPath: String = "")
Link copied to clipboard
fun ApplicationEngineEnvironmentReloading(classLoader: ClassLoader, log: Logger, config: ApplicationConfig, connectors: List<EngineConnectorConfig>, modules: List<Application.() -> Unit>, watchPaths: List<String> = emptyList(), parentCoroutineContext: CoroutineContext = EmptyCoroutineContext, rootPath: String = "", developmentMode: Boolean = true)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun reload()

Reload application: destroy it first and then create again

Link copied to clipboard
open override fun start()

Starts ApplicationEngineEnvironment and creates an application.

Link copied to clipboard
open override fun stop()

Stops ApplicationEngineEnvironment and destroys any running application.

Properties

Link copied to clipboard
open override val application: Application

Running Application.

Link copied to clipboard
open override val classLoader: ClassLoader
Link copied to clipboard
open override val config: ApplicationConfig
Link copied to clipboard

Connectors that describers where and how server should listen.

Link copied to clipboard
open override val developmentMode: Boolean = true
Link copied to clipboard
open override val log: Logger
Link copied to clipboard
open override val monitor: Events
Link copied to clipboard
Link copied to clipboard
open override val rootPath: String