BshScriptFactory(scriptSourceLocator: String)
Create a new BshScriptFactory for the given script source.
With this BshScriptFactory variant, the script needs to declare a full class or return an actual instance of the scripted object.
scriptSourceLocator - a locator that points to the source of the script. Interpreted by the post-processor that actually creates the script.
BshScriptFactory(scriptSourceLocator: String, @Nullable vararg scriptInterfaces: Class<*>)
Create a new BshScriptFactory for the given script source.
The script may either be a simple script that needs a corresponding proxy generated (implementing the specified interfaces), or declare a full class or return an actual instance of the scripted object (in which case the specified interfaces, if any, need to be implemented by that class/instance).
scriptSourceLocator - a locator that points to the source of the script. Interpreted by the post-processor that actually creates the script.
scriptInterfaces - the Java interfaces that the scripted object is supposed to implement (may be null)