org.kohsuke.stapler.jelly.jruby
Class RubyTemplateContainer

java.lang.Object
  extended by 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 ScriptingContainers.

Author:
Kohsuke Kawaguchi

Field Summary
 org.jruby.embed.ScriptingContainer container
          This RubyTemplateContainer instance if scoped to this JRuby interpreter context.
 RubyTemplateLanguage language
          Where we came from.
 
Constructor Summary
RubyTemplateContainer(org.jruby.RubyClass scriptClass, RubyTemplateLanguage language, org.jruby.embed.ScriptingContainer container)
           
 
Method Summary
 org.apache.commons.jelly.Script parseScript(URL path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

RubyTemplateContainer

public RubyTemplateContainer(org.jruby.RubyClass scriptClass,
                             RubyTemplateLanguage language,
                             org.jruby.embed.ScriptingContainer container)
Method Detail

parseScript

public org.apache.commons.jelly.Script parseScript(URL path)
                                            throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.