Package org.camunda.bpm.application.impl
Class ProcessApplicationScriptEnvironment
- java.lang.Object
-
- org.camunda.bpm.application.impl.ProcessApplicationScriptEnvironment
-
public class ProcessApplicationScriptEnvironment extends java.lang.Object
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.util.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 java.util.Map<java.lang.String,java.util.List<ExecutableScript>>
getEnvironmentScripts()
Returns a map of cached environment scripts per script language.protected java.lang.ClassLoader
getProcessApplicationClassloader()
javax.script.ScriptEngine
getScriptEngineForName(java.lang.String scriptEngineName, boolean cache)
Returns an instance ofScriptEngine
for the givenscriptEngineName
.
-
-
-
Field Detail
-
processApplication
protected ProcessApplicationInterface processApplication
-
processApplicationScriptEngineResolver
protected ScriptEngineResolver processApplicationScriptEngineResolver
-
environmentScripts
protected java.util.Map<java.lang.String,java.util.List<ExecutableScript>> environmentScripts
-
-
Constructor Detail
-
ProcessApplicationScriptEnvironment
public ProcessApplicationScriptEnvironment(ProcessApplicationInterface processApplication)
-
-
Method Detail
-
getScriptEngineForName
public javax.script.ScriptEngine getScriptEngineForName(java.lang.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 java.util.Map<java.lang.String,java.util.List<ExecutableScript>> getEnvironmentScripts()
Returns a map of cached environment scripts per script language.
-
getProcessApplicationClassloader
protected java.lang.ClassLoader getProcessApplicationClassloader()
-
-