Class OsgiImpl

java.lang.Object
com.yahoo.osgi.OsgiImpl
All Implemented Interfaces:
Osgi

public class OsgiImpl extends Object implements Osgi
Author:
Tony Vaagenes, bratseth, gjoranv
  • Constructor Details

    • OsgiImpl

      public OsgiImpl(com.yahoo.jdisc.application.OsgiFramework jdiscOsgi)
  • Method Details

    • getBundles

      public org.osgi.framework.Bundle[] getBundles()
      Specified by:
      getBundles in interface Osgi
    • getCurrentBundles

      public List<org.osgi.framework.Bundle> getCurrentBundles()
      Description copied from interface: Osgi
      Returns all bundles that have not been scheduled for uninstall.
      Specified by:
      getCurrentBundles in interface Osgi
    • resolveClass

      public Class<Object> resolveClass(BundleInstantiationSpecification spec)
    • getBundle

      public org.osgi.framework.Bundle getBundle(com.yahoo.component.ComponentSpecification id)
      Returns the bundle of a given name having the highest matching version
      Specified by:
      getBundle in interface Osgi
      Parameters:
      id - the id of the component to return. May not include a version, or include an underspecified version, in which case the highest (matching) version which does not contain a qualifier is returned
      Returns:
      the bundle match having the highest version, or null if there was no matches
    • install

      public List<org.osgi.framework.Bundle> install(String absolutePath)
      Specified by:
      install in interface Osgi
    • allowDuplicateBundles

      public void allowDuplicateBundles(Collection<org.osgi.framework.Bundle> bundles)
      Specified by:
      allowDuplicateBundles in interface Osgi
    • hasFelixFramework

      public boolean hasFelixFramework()
      Specified by:
      hasFelixFramework in interface Osgi