| org.springframework.scripting.ScriptFactory
All known Subclasses: org.springframework.scripting.jruby.JRubyScriptFactory, org.springframework.scripting.groovy.GroovyScriptFactory, org.springframework.scripting.bsh.BshScriptFactory,
getScriptInterfaces | Class[] getScriptInterfaces()(Code) | | Return the business interfaces that the script is supposed to implement.
Can return null if the script itself determines
its Java interfaces (such as in the case of Groovy).
the interfaces for the script |
getScriptedObject | Object getScriptedObject(ScriptSource scriptSource, Class[] actualInterfaces) throws IOException, ScriptCompilationException(Code) | | Factory method for creating the scripted Java object.
Implementations are encouraged to cache script metadata such as
a generated script class. Note that this method may be invoked
concurrently and must be implemented in a thread-safe fashion.
Parameters: scriptSource - the actual ScriptSource to retrievethe script source text from (never null ) Parameters: actualInterfaces - the actual interfaces to expose,including script interfaces as well as a generated config interface(if applicable; may be null ) the scripted Java object throws: IOException - if script retrieval failed throws: ScriptCompilationException - if script compilation failed |
getScriptedObjectType | Class getScriptedObjectType(ScriptSource scriptSource) throws IOException, ScriptCompilationException(Code) | | Determine the type of the scripted Java object.
Implementations are encouraged to cache script metadata such as
a generated script class. Note that this method may be invoked
concurrently and must be implemented in a thread-safe fashion.
Parameters: scriptSource - the actual ScriptSource to retrievethe script source text from (never null ) the type of the scripted Java object, or null if none could be determined throws: IOException - if script retrieval failed throws: ScriptCompilationException - if script compilation failed since: 2.0.3 |
requiresConfigInterface | boolean requiresConfigInterface()(Code) | | Return whether the script requires a config interface to be
generated for it. This is typically the case for scripts that
do not determine Java signatures themselves, with no appropriate
config interface specified in getScriptInterfaces() .
whether the script requires a generated config interface See Also: ScriptFactory.getScriptInterfaces() |
|
|