Package | Description |
---|---|
org.springframework.scripting |
Core interfaces for Spring's scripting support.
|
org.springframework.scripting.bsh |
Package providing integration of
BeanShell
(and BeanShell2)
into Spring's scripting infrastructure.
|
org.springframework.scripting.groovy |
Package providing integration of
Groovy
into Spring's scripting infrastructure.
|
org.springframework.scripting.support |
Support classes for Spring's scripting package.
|
Modifier and Type | Method and Description |
---|---|
ScriptSource |
ScriptCompilationException.getScriptSource()
Return the source for the offending script.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ScriptEvaluator.evaluate(ScriptSource script)
Evaluate the given script.
|
java.lang.Object |
ScriptEvaluator.evaluate(ScriptSource script,
java.util.Map<java.lang.String,java.lang.Object> arguments)
Evaluate the given script with the given arguments.
|
java.lang.Object |
ScriptFactory.getScriptedObject(ScriptSource scriptSource,
java.lang.Class<?>... actualInterfaces)
Factory method for creating the scripted Java object.
|
java.lang.Class<?> |
ScriptFactory.getScriptedObjectType(ScriptSource scriptSource)
Determine the type of the scripted Java object.
|
boolean |
ScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource)
Determine whether a refresh is required (e.g.
|
Constructor and Description |
---|
ScriptCompilationException(ScriptSource scriptSource,
java.lang.String msg)
Constructor for ScriptCompilationException.
|
ScriptCompilationException(ScriptSource scriptSource,
java.lang.String msg,
java.lang.Throwable cause)
Constructor for ScriptCompilationException.
|
ScriptCompilationException(ScriptSource scriptSource,
java.lang.Throwable cause)
Constructor for ScriptCompilationException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
BshScriptEvaluator.evaluate(ScriptSource script) |
java.lang.Object |
BshScriptEvaluator.evaluate(ScriptSource script,
java.util.Map<java.lang.String,java.lang.Object> arguments) |
java.lang.Object |
BshScriptFactory.getScriptedObject(ScriptSource scriptSource,
java.lang.Class<?>... actualInterfaces)
Load and parse the BeanShell script via
BshScriptUtils . |
java.lang.Class<?> |
BshScriptFactory.getScriptedObjectType(ScriptSource scriptSource) |
boolean |
BshScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
GroovyScriptEvaluator.evaluate(ScriptSource script) |
java.lang.Object |
GroovyScriptEvaluator.evaluate(ScriptSource script,
java.util.Map<java.lang.String,java.lang.Object> arguments) |
protected java.lang.Object |
GroovyScriptFactory.executeScript(ScriptSource scriptSource,
java.lang.Class<?> scriptClass)
Instantiate the given Groovy script class and run it if necessary.
|
java.lang.Object |
GroovyScriptFactory.getScriptedObject(ScriptSource scriptSource,
java.lang.Class<?>... actualInterfaces)
Loads and parses the Groovy script via the GroovyClassLoader.
|
java.lang.Class<?> |
GroovyScriptFactory.getScriptedObjectType(ScriptSource scriptSource) |
boolean |
GroovyScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) |
Modifier and Type | Class and Description |
---|---|
class |
ResourceScriptSource
ScriptSource implementation
based on Spring's Resource
abstraction. |
class |
StaticScriptSource
Static implementation of the
ScriptSource interface,
encapsulating a given String that contains the script source text. |
Modifier and Type | Method and Description |
---|---|
protected ScriptSource |
ScriptFactoryPostProcessor.convertToScriptSource(java.lang.String beanName,
java.lang.String scriptSourceLocator,
ResourceLoader resourceLoader)
Convert the given script source locator to a ScriptSource instance.
|
protected ScriptSource |
ScriptFactoryPostProcessor.getScriptSource(java.lang.String beanName,
java.lang.String scriptSourceLocator)
Obtain a ScriptSource for the given bean, lazily creating it
if not cached already.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
StandardScriptFactory.adaptToInterfaces(java.lang.Object script,
ScriptSource scriptSource,
java.lang.Class<?>... actualInterfaces) |
protected BeanDefinition |
ScriptFactoryPostProcessor.createScriptedObjectBeanDefinition(BeanDefinition bd,
java.lang.String scriptFactoryBeanName,
ScriptSource scriptSource,
java.lang.Class<?>[] interfaces)
Create a bean definition for the scripted object, based on the given script
definition, extracting the definition data that is relevant for the scripted
object (that is, everything but bean class and constructor arguments).
|
java.lang.Object |
StandardScriptEvaluator.evaluate(ScriptSource script) |
java.lang.Object |
StandardScriptEvaluator.evaluate(ScriptSource script,
java.util.Map<java.lang.String,java.lang.Object> argumentBindings) |
protected java.lang.Object |
StandardScriptFactory.evaluateScript(ScriptSource scriptSource) |
java.lang.Object |
StandardScriptFactory.getScriptedObject(ScriptSource scriptSource,
java.lang.Class<?>... actualInterfaces)
Load and parse the script via JSR-223's ScriptEngine.
|
java.lang.Class<?> |
StandardScriptFactory.getScriptedObjectType(ScriptSource scriptSource) |
protected javax.script.ScriptEngine |
StandardScriptEvaluator.getScriptEngine(ScriptSource script)
Obtain the JSR-223 ScriptEngine to use for the given script.
|
boolean |
StandardScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) |
protected javax.script.ScriptEngine |
StandardScriptFactory.retrieveScriptEngine(ScriptSource scriptSource) |
Constructor and Description |
---|
RefreshableScriptTargetSource(BeanFactory beanFactory,
java.lang.String beanName,
ScriptFactory scriptFactory,
ScriptSource scriptSource,
boolean isFactoryBean)
Create a new RefreshableScriptTargetSource.
|