Package org.apache.bsf.util

# Class BSFFunctions

java.lang.Object
org.apache.bsf.util.BSFFunctions

public class BSFFunctions extends Object
This is a utility that engine implementors may use as the Java object they expose in the scripting language as "bsf". This has essentially a subset of the methods in BSFManager plus some stuff from the utils. Currently used by Javascript (Rhino) & BML.

Author:
  Sanjiva Weerawarana

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BSFFunctions(BSFManager mgr, BSFEngine engine)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addEventListener(Object src, String eventSetName, String filter, Object script)`
  `Object`
  `lookupBean(String name)`
  `void`
  `registerBean(String name, Object bean)`
  `void`
  `unregisterBean(String name)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BSFFunctions

    public BSFFunctions(BSFManager mgr, BSFEngine engine)

- ## Method Details

  - ### addEventListener

    public void addEventListener(Object src, String eventSetName, String filter, Object script) throws BSFException
    Throws:
      `BSFException`

  - ### lookupBean

    public Object lookupBean(String name)

  - ### registerBean

    public void registerBean(String name, Object bean)

  - ### unregisterBean

    public void unregisterBean(String name)