creates a ScalaScriptEngine with the following behaviour:
creates a ScalaScriptEngine with the following behaviour:
if a change in a requested class source file is detected, the source path will be recompiled (this includes all changed files that changed). For each call to ScalaScriptEngine.get(className), provided that recheckEveryInMillis has passed between the call and the previous filesystem check, the filesystem is checked for modifications in the relevant scala file.
the path where the scala source files are.
each file will only be checked for changes once per recheckEveryInMillis milliseconds.
the ScalaScriptEngine
creates a ScalaScriptEngine with the following behaviour:
creates a ScalaScriptEngine with the following behaviour:
if a change in a requested class source file is detected, the source path will be recompiled (this includes all changed files that changed). For each call to ScalaScriptEngine.get(className), the filesystem is checked for modifications in the relevant scala file. For a more efficient way of doing the same in production environments, please look at #onChangeRefresh(sourcePath, recheckEveryInMillis)
the path where the scala source files are.
the ScalaScriptEngine
similar to onChangeRefresh, but the compilation occurs in the background.
similar to onChangeRefresh, but the compilation occurs in the background. While the compilation occurs, the ScalaScriptEngine.get(className) returns the existing version of the class without blocking.
Please call refresh before using the engine for the first time.
Before exiting, please call shutdown to shutdown the compilation thread
similar to onChangeRefresh, but the compilation occurs in the background.
similar to onChangeRefresh, but the compilation occurs in the background. While the compilation occurs, the ScalaScriptEngine.get(className) returns the existing version of the class without blocking.
Please call refresh before using the engine for the first time.
Before exiting, please call shutdown to shutdown the compilation thread
periodically scans the source folders for changes.
periodically scans the source folders for changes. If a change is detected, a recompilation is triggered. The new codeversion is used upon competion of the compilation.
Please call refresh before using the engine for the first time.
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
the companion object provides a lot of useful factory methods to create a script engine with sensible defaults.