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.
checks scala files for modification and if yes it recompiles the changed sources. This is not to be used by client code but rather be used by the rest of the refresh policy traits.
recheckEveryMillis should be provided. If <=0 then for every request for a class, the source file of the class is checked for modifications. If >0 then maximum 1 check will be performed every recheckEveryMillis milliseconds. A sensible value might be 1000 millis if code changes frequently (i.e. during dev) and 30000 millis if code doesn't change that often (i.e. production)