|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.bsf.BSFManager org.norther.tammi.core.scripter.lang.ScriptManager
public class ScriptManager
An extended BSF manager.
Field Summary |
---|
Fields inherited from class org.apache.bsf.BSFManager |
---|
classLoader, classPath, declaredBeans, extn2Lang, loadedEngines, objectRegistry, pcs, registeredEngines, tempDir, version |
Constructor Summary | |
---|---|
ScriptManager()
Constructs a new manager. |
Method Summary | |
---|---|
protected List<org.apache.bsf.BSFDeclaredBean> |
getDeclaredBeans()
Gets declared beans. |
String |
getEngineClassName(String lang)
Gets the class name of a registered engine. |
protected Map<String,org.apache.bsf.BSFEngine> |
getLoadedEngines()
Gets loaded engines. |
boolean |
isLanguageLoadable(String lang)
Checks whether a scripting engine for the specified language is registered and loadable. |
org.apache.bsf.BSFEngine |
loadScriptingEngine(String lang)
Loads a BSF engine for the specified language. |
org.apache.bsf.BSFEngine |
loadScriptingEngine(String lang,
org.apache.bsf.BSFEngine engine)
Loads an existing BSF engine. |
void |
reinitialize()
Reinitializes all engines ignoring exceptions. |
void |
reinitialize(String lang)
Reinitializes an existing BSF engine ignoring exceptions. |
Methods inherited from class org.apache.bsf.BSFManager |
---|
apply, compileApply, compileExpr, compileScript, declareBean, eval, exec, getClassLoader, getClassPath, getLangFromFilename, getObjectRegistry, getTempDir, getVersion, iexec, isLanguageRegistered, 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 |
---|
public ScriptManager()
Method Detail |
---|
public String getEngineClassName(String lang)
lang
- the language.
public org.apache.bsf.BSFEngine loadScriptingEngine(String lang) throws org.apache.bsf.BSFException
loadScriptingEngine
in class org.apache.bsf.BSFManager
lang
- the language.
org.apache.bsf.BSFException
- on errors.public org.apache.bsf.BSFEngine loadScriptingEngine(String lang, org.apache.bsf.BSFEngine engine) throws org.apache.bsf.BSFException
lang
- the language.engine
- the engine.
org.apache.bsf.BSFException
- on errors.public boolean isLanguageLoadable(String lang)
lang
- the language.
public void reinitialize(String lang)
lang
- the language.public void reinitialize()
protected Map<String,org.apache.bsf.BSFEngine> getLoadedEngines()
protected List<org.apache.bsf.BSFDeclaredBean> getDeclaredBeans()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |