ruby
Class ScriptingContainerHolder

java.lang.Object
  extended by ruby.ScriptingContainerHolder

public class ScriptingContainerHolder
extends java.lang.Object

Builds and holds on to ScriptingContainer.

This is so that we can relatively painlessly switch to multi-scriptingcontainer implementation.

Author:
Kohsuke Kawaguchi

Field Summary
 org.jruby.embed.ScriptingContainer ruby
          The unique JRuby environment used by this plugin and all the objects and classes that it contains.
 
Constructor Summary
ScriptingContainerHolder()
          Initializes this plugin by setting up the JRuby scripting container and then loading up the ruby side of the plugin by creating an instance of the Ruby class Jenkins::Plugin which will serve as its agent in the Ruby world.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ruby

public final org.jruby.embed.ScriptingContainer ruby
The unique JRuby environment used by this plugin and all the objects and classes that it contains.

Constructor Detail

ScriptingContainerHolder

public ScriptingContainerHolder()
Initializes this plugin by setting up the JRuby scripting container and then loading up the ruby side of the plugin by creating an instance of the Ruby class Jenkins::Plugin which will serve as its agent in the Ruby world.

We also register xstream mappers for JRuby objects so that they can be persisted along with other objects in Jenkins.



Copyright © 2004-2011. All Rights Reserved.