class ApplicationEngineEnvironmentReloading : 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
ApplicationEngineEnvironmentReloading(classLoader: ClassLoader, log: Logger, config: ApplicationConfig, connectors: List<EngineConnectorConfig>, modules: List<Application.() -> Unit>, watchPaths: List<String> = emptyList(), parentCoroutineContext: <ERROR CLASS> = EmptyCoroutineContext, rootPath: String = "") ApplicationEngineEnvironmentReloading(classLoader: ClassLoader, log: Logger, config: ApplicationConfig, connectors: List<EngineConnectorConfig>, modules: List<Application.() -> Unit>, watchPaths: List<String> = emptyList(), parentCoroutineContext: <ERROR CLASS> = EmptyCoroutineContext, rootPath: String = "", developmentMode: Boolean = true)
Implements ApplicationEngineEnvironment by loading an Application from a folder or jar. |
val application: Application
Running Application. |
|
val classLoader: ClassLoader |
|
val config: ApplicationConfig |
|
val connectors: List<EngineConnectorConfig>
Connectors that describers where and how server should listen. |
|
val developmentMode: Boolean |
|
val log: Logger |
|
val monitor: ApplicationEvents |
|
val parentCoroutineContext: <ERROR CLASS> |
|
val rootPath: String |
fun reload(): Unit
Reload application: destroy it first and then create again |
|
fun start(): Unit
Starts ApplicationEngineEnvironment and creates an application. |
|
fun stop(): Unit
Stops ApplicationEngineEnvironment and destroys any running application. |