t

com.googlecode.scalascriptengine

RefreshSynchronously

trait RefreshSynchronously extends ScalaScriptEngine with OnChangeRefresh

refresh as soon as a modification is detected. The first thread that actually does the refresh will do the compilation and the rest of the threads will wait. All threads will get an up to date compiled version of the source code.

This is blocking during compilation and is not recommended to be used by web servers. RefreshAsynchronously offers a much better alternative.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RefreshSynchronously
  2. OnChangeRefresh
  3. ScalaScriptEngine
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val recheckEveryMillis: Long
    Definition Classes
    OnChangeRefresh

Concrete 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 cleanBuild: CodeVersion

    forces a clean build of all source files

    forces a clean build of all source files

    returns

    the new CodeVersion

    Definition Classes
    ScalaScriptEngine
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def compilationStatus: CompilationStatus
    Definition Classes
    ScalaScriptEngine
  8. val config: Config
    Definition Classes
    ScalaScriptEngine
  9. def constructors[T](className: String): Constructors[T]

    returns Constructors, this allows easy instantiation of the class using up to 4 constructor arguments.

    returns Constructors, this allows easy instantiation of the class using up to 4 constructor arguments.

    Constructors returned by this method are linked to the current codeversion. This means that, if codeversion is refreshed, a call to this will return an up to date Constructors instance. But also it means that the returned constructor will always create instances of that codeversion and will not reflect updates to the codeversion.

    Definition Classes
    ScalaScriptEngine
  10. def createClassLoader: ScalaClassLoader
    Attributes
    protected
    Definition Classes
    ScalaScriptEngine
  11. def currentVersion: CodeVersion
    Definition Classes
    ScalaScriptEngine
  12. def debug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  13. def deleteAllClassesInOutputDirectory(): Unit

    please make sure outputDir is valid!!! If you used one of the factory methods to create an instance of the script engine, the output dir will be in the tmp directory.

    please make sure outputDir is valid!!! If you used one of the factory methods to create an instance of the script engine, the output dir will be in the tmp directory.

    Definition Classes
    ScalaScriptEngine
  14. def doRefresh: Unit
    Definition Classes
    RefreshSynchronouslyOnChangeRefresh
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def error(msg: String, e: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  18. def error(msg: String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def get[T](className: String): Class[T]

    returns the Class[T] for className

    returns the Class[T] for className

    Can throw ClassNotFoundException if the class is not present. Can throw ClassCastException if the class is not of T Can trigger a compilation in the background or foreground, depending on the refresh policy.

    Definition Classes
    OnChangeRefreshScalaScriptEngine
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  23. def info(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isModified(sourcePath: SourcePath, clz: String): Boolean

    clz

    the full class name

    returns

    true if the scala file was modified since the last compilation

    Definition Classes
    ScalaScriptEngine
  26. def markAllAsModified(): Unit

    marks all source files as modified, hence it will recompile all the source files on the next call to refresh()

    marks all source files as modified, hence it will recompile all the source files on the next call to refresh()

    Definition Classes
    ScalaScriptEngine
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def newInstance[T](className: String): T

    returns a new instance of className.

    returns a new instance of className. The new instance is always of the latest codeversion.

    Definition Classes
    ScalaScriptEngine
  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. def numberOfTimesSourcesTestedForModifications: Long
    Definition Classes
    OnChangeRefresh
  32. def refresh: CodeVersion
    Definition Classes
    ScalaScriptEngine
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def versionNumber: Int
    Definition Classes
    ScalaScriptEngine
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def warn(msg: String): Unit
    Attributes
    protected
    Definition Classes
    Logging

Inherited from OnChangeRefresh

Inherited from ScalaScriptEngine

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped