com.googlecode.scalascriptengine

ScalaScriptEngine

object ScalaScriptEngine

the companion object provides a lot of useful factory methods to create a script engine with sensible defaults.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaScriptEngine
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def currentClassPath: Set[File]

  7. def defaultConfig(sourcePath: File): Config

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def onChangeRefresh(config: Config, recheckSourceEveryDtInMillis: Long): ScalaScriptEngine with OnChangeRefresh

  18. 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

  19. 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

  20. def onChangeRefreshAsynchronously(config: Config, recheckEveryInMillis: Long): ScalaScriptEngine with OnChangeRefresh with RefreshAsynchronously

  21. 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

  22. 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

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def timedRefresh(config: Config, refreshEvery: () ⇒ DateTime): ScalaScriptEngine with TimedRefresh

  25. 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.

  26. def tmpOutputFolder: File

  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def withoutRefreshPolicy(sourcePath: SourcePath): ScalaScriptEngine

    returns an instance of the engine.

    returns an instance of the engine. Refreshes must be done manually

  32. def withoutRefreshPolicy(sourcePaths: List[SourcePath]): ScalaScriptEngine

    returns an instance of the engine.

    returns an instance of the engine. Refreshes must be done manually

  33. def withoutRefreshPolicy(config: Config, compilationClassPaths: Set[File]): ScalaScriptEngine

  34. 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

  35. 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

  36. 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

Inherited from AnyRef

Inherited from Any

Ungrouped