| org.ofbiz.base.util.OfbizJsBsfEngine
OfbizJsBsfEngine | public class OfbizJsBsfEngine extends BSFEngineImpl (Code) | | This is the interface to Netscape's Rhino (JavaScript) from the
Bean Scripting Framework.
The original version of this code was first written by Adam Peller
for use in LotusXSL. Sanjiva took his code and adapted it for BSF.
Also modified for optimized use in the OFBiz framework.
author: Adam Peller author: Sanjiva Weerawarana author: Matthew J. Duftler author: Norris Boyd author: David E. Jones |
call | public Object call(Object object, String method, Object[] args) throws BSFException(Code) | | Return an object from an extension.
Parameters: object - Object on which to make the call (ignored). Parameters: method - The name of the method to call. Parameters: args - an array of arguments to bepassed to the extension, which may be eitherVectors of Nodes, or Strings. |
declareBean | public void declareBean(BSFDeclaredBean bean) throws BSFException(Code) | | |
eval | public Object eval(String source, int lineNo, int columnNo, Object oscript) throws BSFException(Code) | | This is used by an application to evaluate a string containing
some expression.
|
initialize | public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException(Code) | | initialize the engine. put the manager into the context -> manager
map hashtable too.
|
undeclareBean | public void undeclareBean(BSFDeclaredBean bean) throws BSFException(Code) | | |
|
|