public class RubyTemplateContainer extends Object
ScriptingContainer portion of RubyTemplateLanguage.
One often needs to do some preparation work in every ScriptingContainer that it uses,
such as loading gem. Instance of this captures that context.
Right now, we only use one ScriptingContainer, so this isn't serving any useful purpose,
but this is in anticipation of the future expansion to handle multiple ScriptingContainers.
| Modifier and Type | Field and Description |
|---|---|
org.jruby.embed.ScriptingContainer |
container
This
RubyTemplateContainer instance if scoped to this JRuby interpreter context. |
RubyTemplateLanguage |
language
Where we came from.
|
| Constructor and Description |
|---|
RubyTemplateContainer(org.jruby.RubyClass scriptClass,
RubyTemplateLanguage language,
org.jruby.embed.ScriptingContainer container) |
public final RubyTemplateLanguage language
public final org.jruby.embed.ScriptingContainer container
RubyTemplateContainer instance if scoped to this JRuby interpreter context.public RubyTemplateContainer(org.jruby.RubyClass scriptClass,
RubyTemplateLanguage language,
org.jruby.embed.ScriptingContainer container)
public org.apache.commons.jelly.Script parseScript(URL path) throws IOException
IOExceptionCopyright © 2019. All rights reserved.