org.norther.tammi.core.scripter.lang
Class ScriptManager

java.lang.Object
  extended by org.apache.bsf.BSFManager
      extended by org.norther.tammi.core.scripter.lang.ScriptManager

public class ScriptManager
extends org.apache.bsf.BSFManager

An extended BSF manager.

Author:
Ilkka Priha

Field Summary
 
Fields inherited from class org.apache.bsf.BSFManager
classLoader, classPath, declaredBeans, extn2Lang, loadedEngines, objectRegistry, pcs, registeredEngines, tempDir
 
Constructor Summary
ScriptManager()
          Constructs a new manager.
 
Method Summary
protected  Vector getDeclaredBeans()
          Gets declared beans.
 String getEngineClassName(String lang)
          Gets the class name of a registered engine.
 org.apache.bsf.BSFEngine loadScriptingEngine(String lang, org.apache.bsf.BSFEngine engine)
          Loads an existing BSF engine.
 void reinitialize()
          Reinitializes all engines ignoring exceptions.
 
Methods inherited from class org.apache.bsf.BSFManager
apply, compileApply, compileExpr, compileScript, declareBean, eval, exec, getClassLoader, getClassPath, getDebugManager, getLangFromFilename, getObjectRegistry, getTempDir, initBSFDebugManager, isLanguageRegistered, loadScriptingEngine, lookupBean, registerBean, registerScriptingEngine, setClassLoader, setClassPath, setObjectRegistry, setTempDir, terminate, undeclareBean, unregisterBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptManager

public ScriptManager()
Constructs a new manager.

Method Detail

getEngineClassName

public String getEngineClassName(String lang)
Gets the class name of a registered engine.

Parameters:
lang - the language.
Returns:
the class name or null.

loadScriptingEngine

public org.apache.bsf.BSFEngine loadScriptingEngine(String lang,
                                                    org.apache.bsf.BSFEngine engine)
                                             throws org.apache.bsf.BSFException
Loads an existing BSF engine.

Parameters:
lang - the language.
engine - the engine.
Returns:
the previous engine, if any.
Throws:
org.apache.bsf.BSFException - on errors.

reinitialize

public void reinitialize()
Reinitializes all engines ignoring exceptions.


getDeclaredBeans

protected Vector getDeclaredBeans()
Gets declared beans.

Parameters:
name - the name of the bean.
Returns:
a list of declared beans.


Copyright © 2004 The Norther Organization. All rights reserved.