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.
this is useful during development. If your IDE compiles the classes (and recompiles them), then there is no need for the script engine to recompile those. Just mixin this trait and don't call refresh (if refresh is called then it falls back to normal operation)
Note: don't use this on production or stress tests as it will reload the classes over and over again until java runs out of PermGen space.