open class StandardScriptFactory : ScriptFactory, BeanClassLoaderAware
org.springframework.scripting.ScriptFactory implementation based on the JSR-223 script engine abstraction (as included in Java 6+). Supports JavaScript, Groovy, JRuby and other JSR-223 compliant engines.
Typically used in combination with a org.springframework.scripting.support.ScriptFactoryPostProcessor; see the latter's javadoc for a configuration example.
Author
Juergen Hoeller
Since
4.2
See Also
ScriptFactoryPostProcessor
StandardScriptFactory(scriptSourceLocator: String)StandardScriptFactory(scriptSourceLocator: String, vararg scriptInterfaces: Class<*>)StandardScriptFactory(scriptEngineName: String, scriptSourceLocator: String)StandardScriptFactory(scriptEngineName: String, scriptSourceLocator: String, vararg scriptInterfaces: Class<*>)
Create a new StandardScriptFactory for the given script source. |
open fun getScriptInterfaces(): Array<Class<*>> |
|
open fun getScriptSourceLocator(): String |
|
open fun getScriptedObject(scriptSource: ScriptSource, vararg actualInterfaces: Class<*>): Any
Load and parse the script via JSR-223's ScriptEngine. |
|
open fun getScriptedObjectType(scriptSource: ScriptSource): Class<*> |
|
open fun requiresConfigInterface(): Boolean |
|
open fun requiresScriptedObjectRefresh(scriptSource: ScriptSource): Boolean |
|
open fun setBeanClassLoader(classLoader: ClassLoader): Unit |
|
open fun toString(): String |