| java.lang.Object org.springframework.scripting.bsh.BshScriptFactory
Constructor Summary | |
public | BshScriptFactory(String scriptSourceLocator) Create a new BshScriptFactory for the given script source. | public | BshScriptFactory(String scriptSourceLocator, Class[] scriptInterfaces) Create a new BshScriptFactory for the given script source. |
BshScriptFactory | public BshScriptFactory(String scriptSourceLocator)(Code) | | 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.
Parameters: scriptSourceLocator - a locator that points to the source of the script.Interpreted by the post-processor that actually creates the script. |
BshScriptFactory | public BshScriptFactory(String scriptSourceLocator, Class[] scriptInterfaces)(Code) | | 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).
Parameters: scriptSourceLocator - a locator that points to the source of the script.Interpreted by the post-processor that actually creates the script. Parameters: scriptInterfaces - the Java interfaces that the scripted objectis supposed to implement (may be null ) |
getScriptInterfaces | public Class[] getScriptInterfaces()(Code) | | |
getScriptSourceLocator | public String getScriptSourceLocator()(Code) | | |
requiresConfigInterface | public boolean requiresConfigInterface()(Code) | | BeanShell scripts do require a config interface.
|
|
|