| org.ofbiz.minilang.SimpleMethodBsfEngine
SimpleMethodBsfEngine | public class SimpleMethodBsfEngine extends BSFEngineImpl (Code) | | This is the OFBiz MiniLang SimpleMethod adapter for IBM's Bean Scripting Famework.
It is an implementation of the BSFEngine class, allowing BSF aware
applications to use SimpleMethod as a scripting language.
There should only be ONE simple-method in the XML file and it will be run as an event.
author: David E. Jones |
Method Summary | |
public Object | apply(String source, int lineNo, int columnNo, Object funcBody, Vector namesVec, Vector argsVec) This is an implementation of the apply() method. | public Object | call(Object object, String name, Object[] args) Invoke method name on the specified scripted object. | public void | declareBean(BSFDeclaredBean bean) | public Object | eval(String source, int lineNo, int columnNo, Object expr) | public void | exec(String source, int lineNo, int columnNo, Object script) | public void | initialize(BSFManager mgr, String lang, Vector declaredBeans) | public void | setDebug(boolean debug) | public void | terminate() | public void | undeclareBean(BSFDeclaredBean bean) |
apply | public Object apply(String source, int lineNo, int columnNo, Object funcBody, Vector namesVec, Vector argsVec) throws BSFException(Code) | | This is an implementation of the apply() method.
It exectutes the funcBody text in an "anonymous" method call with
arguments.
|
call | public Object call(Object object, String name, Object[] args) throws BSFException(Code) | | Invoke method name on the specified scripted object.
The object may be null to indicate the global namespace of the
interpreter.
Parameters: object - may be null for the global namespace. |
declareBean | public void declareBean(BSFDeclaredBean bean) throws BSFException(Code) | | |
exec | public void exec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code) | | |
initialize | public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException(Code) | | |
setDebug | public void setDebug(boolean debug)(Code) | | |
terminate | public void terminate()(Code) | | |
undeclareBean | public void undeclareBean(BSFDeclaredBean bean) throws BSFException(Code) | | |
|
|