| |
|
| java.lang.Object org.directwebremoting.create.AbstractCreator org.directwebremoting.create.ScriptedCreator
ScriptedCreator | public class ScriptedCreator extends AbstractCreator implements Creator(Code) | | A creator that uses BeanShell to evaluate some script to create an object.
author: Joe Walker [joe at getahead dot ltd dot uk] author: Dennis [devel at muhlesteins dot com] |
ScriptedCreator | public ScriptedCreator()(Code) | | Set up some defaults
|
getLanguage | public String getLanguage()(Code) | | The language that we are scripting in. Passed to BSF.
Returns the language. |
getScriptPath | public String getScriptPath()(Code) | | Returns the path of the script. |
isReloadable | public boolean isReloadable()(Code) | | Are we caching the script (default: false)
Returns the reloadable variable |
isUseDynamicClasses | public boolean isUseDynamicClasses()(Code) | | Are we using dynamic classes (i.e. classes generated by BeanShell or
similar) in which case we want to reuse class defs.
Returns the useDynamicClasses flag state. |
setClass | public void setClass(String classname)(Code) | | What sort of class do we create?
Parameters: classname - The name of the class |
setLanguage | public void setLanguage(String language)(Code) | | Parameters: language - The language to set. |
setReloadable | public void setReloadable(boolean reloadable)(Code) | | Parameters: reloadable - Whether or not to reload the script.The default is true. This parameter is only used if scriptPath isused instead of script. When reloadable is true, ScriptedCreator willcheck to see if the script has been modified before returning theexisting created class. |
setScript | public void setScript(String scriptSrc)(Code) | | Parameters: scriptSrc - The script to set. |
setScriptPath | public void setScriptPath(String scriptPath)(Code) | | Parameters: scriptPath - Context reletive path to script. |
setUseDynamicClasses | public void setUseDynamicClasses(boolean useDynamicClasses)(Code) | | Are we using dynamic classes (i.e. classes generated by BeanShell or
similar) in which case we want to reuse class defs.
Parameters: useDynamicClasses - The useDynamicClasses flag state. |
|
|
|