org.camunda.bpm.application.impl
Class ProcessApplicationScriptEnvironment

java.lang.Object
  extended by org.camunda.bpm.application.impl.ProcessApplicationScriptEnvironment

public class ProcessApplicationScriptEnvironment
extends Object

Author:
Roman Smirnov

Field Summary
protected  Map<String,List<ExecutableScript>> environmentScripts
           
protected  ProcessApplicationInterface processApplication
           
protected  ScriptEngineResolver processApplicationScriptEngineResolver
           
 
Constructor Summary
ProcessApplicationScriptEnvironment(ProcessApplicationInterface processApplication)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 given scriptEngineName.

Iff the given parameter cache is set true, then the instance ScriptEngine will be cached.

Parameters:
scriptEngineName - the name of the ScriptEngine to return
cache - a boolean value which indicates whether the ScriptEngine 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()


Copyright © 2015 camunda services GmbH. All rights reserved.