org.kohsuke.stapler.jelly.jruby
Class RubyTemplateContainer
java.lang.Object
org.kohsuke.stapler.jelly.jruby.RubyTemplateContainer
public class RubyTemplateContainer
- extends Object
Per-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 ScriptingContainer
s.
- Author:
- Kohsuke Kawaguchi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
language
public final RubyTemplateLanguage language
- Where we came from.
container
public final org.jruby.embed.ScriptingContainer container
- This
RubyTemplateContainer
instance if scoped to this JRuby interpreter context.
RubyTemplateContainer
public RubyTemplateContainer(org.jruby.RubyClass scriptClass,
RubyTemplateLanguage language,
org.jruby.embed.ScriptingContainer container)
parseScript
public org.apache.commons.jelly.Script parseScript(URL path)
throws IOException
- Throws:
IOException
Copyright © 2012. All Rights Reserved.