object ScalaScriptEngine
the companion object provides a lot of useful factory methods to create a script engine with sensible defaults.
- Alphabetic
- By Inheritance
- ScalaScriptEngine
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def currentClassPath: Set[File]
- def defaultConfig(sourcePath: File): Config
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def onChangeRefresh(config: Config, recheckSourceEveryDtInMillis: Long): ScalaScriptEngine with OnChangeRefresh
-
def
onChangeRefresh(sourcePath: File, recheckSourceEveryDtInMillis: Long): ScalaScriptEngine with OnChangeRefresh
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.
- sourcePath
the path where the scala source files are.
- recheckSourceEveryDtInMillis
each file will only be checked for changes once per recheckEveryInMillis milliseconds.
- returns
the ScalaScriptEngine
-
def
onChangeRefresh(sourcePath: File): ScalaScriptEngine with OnChangeRefresh
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)
- sourcePath
the path where the scala source files are.
- returns
the ScalaScriptEngine
- def onChangeRefreshAsynchronously(config: Config, recheckEveryInMillis: Long): ScalaScriptEngine with OnChangeRefresh with RefreshAsynchronously
-
def
onChangeRefreshAsynchronously(sourcePath: File, recheckEveryInMillis: Long): ScalaScriptEngine with OnChangeRefresh with RefreshAsynchronously
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
-
def
onChangeRefreshAsynchronously(sourcePath: File): ScalaScriptEngine with OnChangeRefresh with RefreshAsynchronously
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def timedRefresh(config: Config, refreshEvery: () ⇒ DateTime): ScalaScriptEngine with TimedRefresh
-
def
timedRefresh(sourcePath: File, refreshEvery: () ⇒ DateTime): ScalaScriptEngine with TimedRefresh
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.
- def tmpOutputFolder: File
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withoutRefreshPolicy(sourcePath: SourcePath): ScalaScriptEngine
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
-
def
withoutRefreshPolicy(sourcePaths: List[SourcePath]): ScalaScriptEngine
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
- def withoutRefreshPolicy(config: Config, compilationClassPaths: Set[File]): ScalaScriptEngine
-
def
withoutRefreshPolicy(sourcePath: SourcePath, compilationClassPaths: Set[File]): ScalaScriptEngine
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
-
def
withoutRefreshPolicy(sourcePaths: List[SourcePath], compilationClassPaths: Set[File]): ScalaScriptEngine
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually
-
def
withoutRefreshPolicy(sourcePaths: List[SourcePath], compilationClassPaths: Set[File], classLoadingClassPaths: Set[File]): ScalaScriptEngine
returns an instance of the engine.
returns an instance of the engine. Refreshes must be done manually