de.saumya.mojo.ruby
Class GemScriptingContainer

java.lang.Object
  extended by org.jruby.embed.ScriptingContainer
      extended by de.saumya.mojo.ruby.GemScriptingContainer
All Implemented Interfaces:
org.jruby.embed.EmbedRubyInstanceConfigAdapter

public class GemScriptingContainer
extends org.jruby.embed.ScriptingContainer


Constructor Summary
GemScriptingContainer()
           
GemScriptingContainer(File gemHome, File gemPath)
           
GemScriptingContainer(org.jruby.embed.LocalContextScope scope, org.jruby.embed.LocalVariableBehavior behavior)
           
GemScriptingContainer(org.jruby.embed.LocalContextScope scope, org.jruby.embed.LocalVariableBehavior behavior, File gemHome, File gemPath)
           
 
Method Summary
 Object runScriptletFromClassloader(String name)
           
 Object runScriptletFromClassloader(String name, Class<?> clazz)
           
 
Methods inherited from class org.jruby.embed.ScriptingContainer
callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, callSuper, clear, finalize, get, get, getArgv, getAttribute, getAttributeMap, getClassCache, getClassLoader, getCompatVersion, getCompileMode, getCurrentDirectory, getEnvironment, getErr, getError, getErrorWriter, getHomeDirectory, getIn, getInput, getInstance, getJitLogEvery, getJitMax, getJitMaxSize, getJitThreshold, getKCode, getLoadPaths, getLoadServiceCreator, getOut, getOutput, getProfile, getProfilingMode, getProperty, getProvider, getReader, getRecordSeparator, getRuntime, getScriptFilename, getSupportedRubyVersion, getVarMap, getWriter, isObjectSpaceEnabled, isRunRubyInProcess, newObjectAdapter, newRuntimeAdapter, parse, parse, parse, parse, put, put, remove, remove, removeAttribute, resetErrorWriter, resetWriter, runScriptlet, runScriptlet, runScriptlet, runScriptlet, setArgv, setAttribute, setClassCache, setClassLoader, setCompatVersion, setCompileMode, setCurrentDirectory, setEnvironment, setError, setError, setErrorWriter, setHomeDirectory, setInput, setInput, setJitLogEvery, setJitMax, setJitMaxSize, setJitThreshold, setKCode, setLoadPaths, setLoadServiceCreator, setObjectSpaceEnabled, setOutput, setOutput, setProfile, setProfile, setReader, setRecordSeparator, setRunRubyInProcess, setScriptFilename, setWriter, terminate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GemScriptingContainer

public GemScriptingContainer()

GemScriptingContainer

public GemScriptingContainer(File gemHome,
                             File gemPath)

GemScriptingContainer

public GemScriptingContainer(org.jruby.embed.LocalContextScope scope,
                             org.jruby.embed.LocalVariableBehavior behavior)

GemScriptingContainer

public GemScriptingContainer(org.jruby.embed.LocalContextScope scope,
                             org.jruby.embed.LocalVariableBehavior behavior,
                             File gemHome,
                             File gemPath)
Method Detail

runScriptletFromClassloader

public Object runScriptletFromClassloader(String name,
                                          Class<?> clazz)
                                   throws IOException
Throws:
IOException

runScriptletFromClassloader

public Object runScriptletFromClassloader(String name)
                                   throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.