Package org.camunda.spin.scripting
Class SpinScriptEnv
- java.lang.Object
-
- org.camunda.spin.scripting.SpinScriptEnv
-
public class SpinScriptEnv extends java.lang.ObjectSpin provides a set of environment scripts for known scripting languages. These scripts make it easier to use spin in a scripting language. Users can execute these scripts before they execute their custom scripts.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.lang.String>extensionsMapping of knownScriptEnginelanguage names and file extensions of corresponding script files.
-
Constructor Summary
Constructors Constructor Description SpinScriptEnv()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringget(java.lang.String language)Get the spin scripting environmentstatic java.lang.StringgetExtension(java.lang.String language)Get file extension for script language.protected static java.lang.StringloadScriptEnv(java.lang.String language, java.lang.String extension)
-
-
-
Method Detail
-
getExtension
public static java.lang.String getExtension(java.lang.String language)
Get file extension for script language.- Parameters:
language- the language name- Returns:
- the file extension as string or null if the language is not in the set of languages supported by spin
-
get
public static java.lang.String get(java.lang.String language)
Get the spin scripting environment- Parameters:
language- the language name- Returns:
- the environment script as string or null if the language is not in the set of languages supported by spin.
-
loadScriptEnv
protected static java.lang.String loadScriptEnv(java.lang.String language, java.lang.String extension)
-
-