public class ProcessApplicationScriptEnvironment extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<ExecutableScript>> |
environmentScripts |
protected ProcessApplicationInterface |
processApplication |
protected ScriptEngineResolver |
processApplicationScriptEngineResolver |
Constructor and Description |
---|
ProcessApplicationScriptEnvironment(ProcessApplicationInterface processApplication) |
Modifier and Type | Method and Description |
---|---|
Map<String,List<ExecutableScript>> |
getEnvironmentScripts()
Returns a map of cached environment scripts per script language.
|
protected ClassLoader |
getProcessApplicationClassloader() |
ScriptEngine |
getScriptEngineForName(String scriptEngineName,
boolean cache)
Returns an instance of
ScriptEngine for the given scriptEngineName . |
protected ProcessApplicationInterface processApplication
protected ScriptEngineResolver processApplicationScriptEngineResolver
protected Map<String,List<ExecutableScript>> environmentScripts
public ProcessApplicationScriptEnvironment(ProcessApplicationInterface processApplication)
public ScriptEngine getScriptEngineForName(String scriptEngineName, boolean cache)
Returns an instance of ScriptEngine
for the given scriptEngineName
.
Iff the given parameter cache
is set true
,
then the instance ScriptEngine
will be cached.
scriptEngineName
- the name of the ScriptEngine
to returncache
- a boolean value which indicates whether the ScriptEngine
should
be cached or not.ScriptEngine
public Map<String,List<ExecutableScript>> getEnvironmentScripts()
protected ClassLoader getProcessApplicationClassloader()
Copyright © 2021. All rights reserved.