com.googlecode.scalascriptengine
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.
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.
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.
the full class name
true if the scala file was modified since the last compilation
returns a new instance of className.
returns a new instance of className. The new instance is always of the latest codeversion.
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.