public class OSGiIsolatedScriptingContainer extends IsolatedScriptingContainer
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 and Description |
---|
OSGiIsolatedScriptingContainer() |
OSGiIsolatedScriptingContainer(LocalContextScope scope) |
OSGiIsolatedScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior) |
OSGiIsolatedScriptingContainer(LocalContextScope scope,
LocalVariableBehavior behavior,
boolean lazy) |
OSGiIsolatedScriptingContainer(LocalVariableBehavior behavior) |
Modifier and Type | Method and Description |
---|---|
void |
addBundle(org.osgi.framework.Bundle bundle)
add the classloader from the given bundle to the LOAD_PATH and the GEM_PATH
|
void |
addBundle(String symbolicName)
add the classloader from the given bundle to the LOAD_PATH and the GEM_PATH
using the bundle symbolic name
|
void |
addBundleToGemPath(org.osgi.framework.Bundle bundle)
Deprecated.
|
void |
addBundleToGemPath(String symbolicName)
Deprecated.
|
void |
addBundleToLoadPath(org.osgi.framework.Bundle bundle)
Deprecated.
|
void |
addBundleToLoadPath(String symbolicName)
Deprecated.
|
setEnvironment
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, getCompatVersion, 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, setCompatVersion, 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
public OSGiIsolatedScriptingContainer()
public OSGiIsolatedScriptingContainer(LocalContextScope scope, LocalVariableBehavior behavior)
public OSGiIsolatedScriptingContainer(LocalContextScope scope)
public OSGiIsolatedScriptingContainer(LocalVariableBehavior behavior)
public OSGiIsolatedScriptingContainer(LocalContextScope scope, LocalVariableBehavior behavior, boolean lazy)
@Deprecated public void addBundleToLoadPath(org.osgi.framework.Bundle bundle)
bundle
- @Deprecated public void addBundleToLoadPath(String symbolicName)
symbolicName
- public void addBundle(String symbolicName)
symbolicName
- public void addBundle(org.osgi.framework.Bundle bundle)
bundle
- @Deprecated public void addBundleToGemPath(org.osgi.framework.Bundle bundle)
bundle
- @Deprecated public void addBundleToGemPath(String symbolicName)
symbolicName
- Copyright © 2001-2017 JRuby. All Rights Reserved.