Package org.jruby.embed.osgi
Class OSGiIsolatedScriptingContainer
java.lang.Object
org.jruby.embed.ScriptingContainer
org.jruby.embed.IsolatedScriptingContainer
org.jruby.embed.osgi.OSGiIsolatedScriptingContainer
- All Implemented Interfaces:
EmbedRubyInstanceConfigAdapter
adds some helper methods to add Bundle to the LOAD_PATH or GEM_PATH using the
IsolatedScriptingContainer as base.
new URL( uri ).openStream()
, i.e. new URL(classloader.getResource().toString()).openStream()
has to work for
those classloaders. felix, knoplerfish and equinox OSGi framework do work.-
Constructor Summary
ConstructorsConstructorDescriptionOSGiIsolatedScriptingContainer
(LocalContextScope scope, LocalVariableBehavior behavior) OSGiIsolatedScriptingContainer
(LocalContextScope scope, LocalVariableBehavior behavior, boolean lazy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add the classloader from the given bundle to the LOAD_PATH and the GEM_PATH using the bundle symbolic namevoid
addBundle
(org.osgi.framework.Bundle bundle) add the classloader from the given bundle to the LOAD_PATH and the GEM_PATHvoid
addBundleToGemPath
(String symbolicName) Deprecated.void
addBundleToGemPath
(org.osgi.framework.Bundle bundle) Deprecated.void
addBundleToLoadPath
(String symbolicName) Deprecated.void
addBundleToLoadPath
(org.osgi.framework.Bundle bundle) Deprecated.Methods inherited from class org.jruby.embed.IsolatedScriptingContainer
setEnvironment
Methods inherited from class org.jruby.embed.ScriptingContainer
addClassLoader, addGemPath, addGemPath, addLoadPath, addLoadPath, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, callSuper, clear, finalize, get, get, getArgv, getAttribute, getAttributeMap, getClassLoader, getClassloaderDelegate, getCompileMode, getCurrentDirectory, getEnvironment, getErr, getError, getErrorWriter, getHomeDirectory, getIn, getInput, getInstance, getJitLogEvery, getJitMax, getJitMaxSize, getJitThreshold, getKCode, getLoadPaths, getLoadServiceCreator, getOut, getOutput, getProfile, getProfileOutput, getProfilingMode, getProperty, getProvider, getReader, getRecordSeparator, getRuntime, getScriptFilename, getSupportedRubyVersion, getVarMap, getWriter, isNativeEnabled, isObjectSpaceEnabled, isRunRubyInProcess, newObjectAdapter, newRuntimeAdapter, parse, parse, parse, parse, put, put, remove, remove, removeAttribute, resetErrorWriter, resetWriter, runRubyMethod, runRubyMethod, runScriptlet, runScriptlet, runScriptlet, runScriptlet, setArgv, setAttribute, setClassLoader, setClassloaderDelegate, setCompileMode, setCurrentDirectory, setError, setError, setErrorWriter, setHomeDirectory, setInput, setInput, setJitLogEvery, setJitMax, setJitMaxSize, setJitThreshold, setKCode, setLoadPaths, setLoadServiceCreator, setNativeEnabled, setObjectSpaceEnabled, setOutput, setOutput, setProfile, setProfile, setProfileOutput, setProfilingMode, setReader, setRecordSeparator, setRunRubyInProcess, setScriptFilename, setWriter, terminate
-
Constructor Details
-
OSGiIsolatedScriptingContainer
public OSGiIsolatedScriptingContainer() -
OSGiIsolatedScriptingContainer
-
OSGiIsolatedScriptingContainer
-
OSGiIsolatedScriptingContainer
-
OSGiIsolatedScriptingContainer
public OSGiIsolatedScriptingContainer(LocalContextScope scope, LocalVariableBehavior behavior, boolean lazy)
-
-
Method Details
-
addBundleToLoadPath
Deprecated.add the classloader from the given bundle to the LOAD_PATH- Parameters:
bundle
-
-
addBundleToLoadPath
Deprecated.add the classloader from the given bundle to the LOAD_PATH using the bundle symbolic name- Parameters:
symbolicName
-
-
addBundle
add the classloader from the given bundle to the LOAD_PATH and the GEM_PATH using the bundle symbolic name- Parameters:
symbolicName
-
-
addBundle
public void addBundle(org.osgi.framework.Bundle bundle) add the classloader from the given bundle to the LOAD_PATH and the GEM_PATH- Parameters:
bundle
-
-
addBundleToGemPath
Deprecated.add the classloader from the given bundle to the GEM_PATH- Parameters:
bundle
-
-
addBundleToGemPath
Deprecated.add the classloader from the given bundle to the GEM_PATH using the bundle symbolic name- Parameters:
symbolicName
-
-