Package org.camunda.bpm.application.impl
Class ProcessApplicationScriptEnvironment
- java.lang.Object
-
- org.camunda.bpm.application.impl.ProcessApplicationScriptEnvironment
-
public class ProcessApplicationScriptEnvironment extends Object
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<ExecutableScript>>
environmentScripts
protected ProcessApplicationInterface
processApplication
protected ScriptEngineResolver
processApplicationScriptEngineResolver
-
Constructor Summary
Constructors Constructor Description ProcessApplicationScriptEnvironment(ProcessApplicationInterface processApplication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofScriptEngine
for the givenscriptEngineName
.
-
-
-
Field Detail
-
processApplication
protected ProcessApplicationInterface processApplication
-
processApplicationScriptEngineResolver
protected ScriptEngineResolver processApplicationScriptEngineResolver
-
environmentScripts
protected Map<String,List<ExecutableScript>> environmentScripts
-
-
Constructor Detail
-
ProcessApplicationScriptEnvironment
public ProcessApplicationScriptEnvironment(ProcessApplicationInterface processApplication)
-
-
Method Detail
-
getScriptEngineForName
public ScriptEngine getScriptEngineForName(String scriptEngineName, boolean cache)
Returns an instance of
ScriptEngine
for the givenscriptEngineName
.Iff the given parameter
cache
is settrue
, then the instanceScriptEngine
will be cached.- Parameters:
scriptEngineName
- the name of theScriptEngine
to returncache
- a boolean value which indicates whether theScriptEngine
should be cached or not.- Returns:
- a
ScriptEngine
-
getEnvironmentScripts
public Map<String,List<ExecutableScript>> getEnvironmentScripts()
Returns a map of cached environment scripts per script language.
-
getProcessApplicationClassloader
protected ClassLoader getProcessApplicationClassloader()
-
-