Class ClassLoaderOsgiFramework

java.lang.Object
com.yahoo.application.container.impl.ClassLoaderOsgiFramework
All Implemented Interfaces:
com.yahoo.jdisc.application.OsgiFramework

public final class ClassLoaderOsgiFramework extends Object implements com.yahoo.jdisc.application.OsgiFramework
A (mock) OSGI implementation which loads classes from the system classpath
Author:
Tony Vaagenes, ollivir
  • Constructor Details

    • ClassLoaderOsgiFramework

      public ClassLoaderOsgiFramework()
  • Method Details

    • installBundle

      public List<org.osgi.framework.Bundle> installBundle(String bundleLocation)
      Specified by:
      installBundle in interface com.yahoo.jdisc.application.OsgiFramework
    • startBundles

      public void startBundles(List<org.osgi.framework.Bundle> bundles, boolean privileged)
      Specified by:
      startBundles in interface com.yahoo.jdisc.application.OsgiFramework
    • refreshPackages

      public void refreshPackages()
      Specified by:
      refreshPackages in interface com.yahoo.jdisc.application.OsgiFramework
    • bundleContext

      public org.osgi.framework.BundleContext bundleContext()
      Specified by:
      bundleContext in interface com.yahoo.jdisc.application.OsgiFramework
    • bundles

      public List<org.osgi.framework.Bundle> bundles()
      Specified by:
      bundles in interface com.yahoo.jdisc.application.OsgiFramework
    • getBundles

      public List<org.osgi.framework.Bundle> getBundles(org.osgi.framework.Bundle requestingBundle)
      Specified by:
      getBundles in interface com.yahoo.jdisc.application.OsgiFramework
    • allowDuplicateBundles

      public void allowDuplicateBundles(Collection<org.osgi.framework.Bundle> bundles)
      Specified by:
      allowDuplicateBundles in interface com.yahoo.jdisc.application.OsgiFramework
    • start

      public void start()
      Specified by:
      start in interface com.yahoo.jdisc.application.OsgiFramework
    • stop

      public void stop()
      Specified by:
      stop in interface com.yahoo.jdisc.application.OsgiFramework