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>>environmentScriptsprotected ProcessApplicationInterfaceprocessApplicationprotected ScriptEngineResolverprocessApplicationScriptEngineResolver
-
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 ClassLoadergetProcessApplicationClassloader()ScriptEnginegetScriptEngineForName(String scriptEngineName, boolean cache)Returns an instance ofScriptEnginefor 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
ScriptEnginefor the givenscriptEngineName.Iff the given parameter
cacheis settrue, then the instanceScriptEnginewill be cached.- Parameters:
scriptEngineName- the name of theScriptEngineto returncache- a boolean value which indicates whether theScriptEngineshould 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()
-
-