public abstract class AbstractScriptManager extends Object implements IScriptManager
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable<String,ScriptEngine> |
hashScriptEngines |
protected Hashtable<String,ScriptEngineFactory> |
hashScriptFactories |
protected ScriptEngineManager |
managerScriptEngine |
static boolean |
use_cache_by_default |
protected boolean |
useCache |
| Constructor and Description |
|---|
AbstractScriptManager() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllAvailableLanguages()
Get a a list with all the available script languages.
|
Hashtable<String,ScriptEngineFactory> |
getAllAvailableScriptFactories()
Get all the available
ScriptEngineFactory in the build path |
ScriptEngineFactory |
getFactoryInstance(String type)
Get the instance of the
ScriptEngineFactory for the specified
script language |
ScriptEngine |
getScriptEngineInstance(String type)
Get the instance of the
ScriptEngineFactory for the specified
script language Script language. |
boolean |
isUseScriptingCache()
Return true if the ScriptManager is using a cache for the scripts
|
protected Hashtable |
loadAvailableScriptFactories()
Returns all available script factories
|
void |
setUseScriptingCache(boolean useCache)
Set if the ScriptManager must use a cache for the scripts or not
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityScripts, getEntityScripts, getFormScriptspublic static boolean use_cache_by_default
protected Hashtable<String,ScriptEngineFactory> hashScriptFactories
protected Hashtable<String,ScriptEngine> hashScriptEngines
protected boolean useCache
protected ScriptEngineManager managerScriptEngine
public ScriptEngineFactory getFactoryInstance(String type)
IScriptManagerScriptEngineFactory for the specified
script languagegetFactoryInstance in interface IScriptManagertype - Script language. This name must be in the list returned by
IScriptManager.getAllAvailableLanguages()public Hashtable<String,ScriptEngineFactory> getAllAvailableScriptFactories()
IScriptManagerScriptEngineFactory in the build pathgetAllAvailableScriptFactories in interface IScriptManagerpublic List<String> getAllAvailableLanguages()
IScriptManagerIScriptManager.getAllAvailableScriptFactories()getAllAvailableLanguages in interface IScriptManagerprotected Hashtable loadAvailableScriptFactories()
Hashtable with (language name, engine) ->
("javafx", JavaFXScriptFactory object)public ScriptEngine getScriptEngineInstance(String type)
IScriptManagerScriptEngineFactory for the specified
script language Script language. This name must be in the list returned
by IScriptManager.getAllAvailableLanguages()getScriptEngineInstance in interface IScriptManagerpublic void setUseScriptingCache(boolean useCache)
IScriptManagersetUseScriptingCache in interface IScriptManagerpublic boolean isUseScriptingCache()
IScriptManagerisUseScriptingCache in interface IScriptManagerCopyright © 2016 Imatia Innovation S.L.. All rights reserved.