public class RubyScript extends AbstractScript
| Constructor and Description |
|---|
RubyScript(RubyLanguage language,
org.jruby.embed.ScriptingContainer container,
String code,
boolean cached,
boolean threadSafe)
Creates a ruby script.
|
| Modifier and Type | Method and Description |
|---|---|
protected CompiledRubyScript |
compileScript(String code)
Compiles script code.
|
<T> T |
execute(Set<ScriptVariable> variables) |
protected <T> T |
executeImpl(CompiledRubyScript script,
Collection<ScriptVariable> variables) |
protected CompiledRubyScript |
getCompiledScript()
Gets the compiled script.
Will be parsed if not done yet. |
void |
validate() |
execute, getCode, getLanguage, isCached, isThreadSafe, toStringpublic RubyScript(RubyLanguage language, org.jruby.embed.ScriptingContainer container, String code, boolean cached, boolean threadSafe)
language - the languagecontainer - the scripting containercode - the scripting codecached - true if cachedthreadSafe - true if threadsafety requiredpublic void validate()
public <T> T execute(Set<ScriptVariable> variables)
protected CompiledRubyScript getCompiledScript()
protected CompiledRubyScript compileScript(String code)
code - the scripting source codeprotected <T> T executeImpl(CompiledRubyScript script, Collection<ScriptVariable> variables)
Tentackle - distributed, domain- and model-driven