Class OSGiIsolatedScriptingContainer

All Implemented Interfaces:
EmbedRubyInstanceConfigAdapter

public class OSGiIsolatedScriptingContainer extends IsolatedScriptingContainer
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 Details

  • Method Details

    • addBundleToLoadPath

      @Deprecated public void addBundleToLoadPath(org.osgi.framework.Bundle bundle)
      Deprecated.
      add the classloader from the given bundle to the LOAD_PATH
      Parameters:
      bundle -
    • addBundleToLoadPath

      @Deprecated public void addBundleToLoadPath(String symbolicName)
      Deprecated.
      add the classloader from the given bundle to the LOAD_PATH using the bundle symbolic name
      Parameters:
      symbolicName -
    • addBundle

      public void addBundle(String symbolicName)
      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 public void addBundleToGemPath(org.osgi.framework.Bundle bundle)
      Deprecated.
      add the classloader from the given bundle to the GEM_PATH
      Parameters:
      bundle -
    • addBundleToGemPath

      @Deprecated public void addBundleToGemPath(String symbolicName)
      Deprecated.
      add the classloader from the given bundle to the GEM_PATH using the bundle symbolic name
      Parameters:
      symbolicName -