spring-framework / org.springframework.scripting.support / StandardScriptFactory / <init>

<init>

StandardScriptFactory(scriptSourceLocator: String)

Create a new StandardScriptFactory for the given script source.

Parameters

scriptSourceLocator - a locator that points to the source of the script. Interpreted by the post-processor that actually creates the script.

StandardScriptFactory(scriptSourceLocator: String, vararg scriptInterfaces: Class<*>)

Create a new StandardScriptFactory for the given script source.

Parameters

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

StandardScriptFactory(scriptEngineName: String, scriptSourceLocator: String)

Create a new StandardScriptFactory for the given script source.

Parameters

scriptEngineName - the name of the JSR-223 ScriptEngine to use (explicitly given instead of inferred from the script source)

scriptSourceLocator - a locator that points to the source of the script. Interpreted by the post-processor that actually creates the script.

StandardScriptFactory(@Nullable scriptEngineName: String, scriptSourceLocator: String, @Nullable vararg scriptInterfaces: Class<*>)

Create a new StandardScriptFactory for the given script source.

Parameters

scriptEngineName - the name of the JSR-223 ScriptEngine to use (explicitly given instead of inferred from the script source)

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