Class MockOsgiWrapper

java.lang.Object
com.yahoo.container.core.config.testutil.MockOsgiWrapper
All Implemented Interfaces:
Osgi, Osgi, OsgiWrapper

public class MockOsgiWrapper extends Object implements OsgiWrapper
Author:
gjoranv
  • Constructor Details

    • MockOsgiWrapper

      public MockOsgiWrapper()
  • 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
    • getBundle

      public org.osgi.framework.Bundle getBundle(com.yahoo.component.ComponentSpecification bundleId)
      Specified by:
      getBundle in interface Osgi
      Specified by:
      getBundle in interface Osgi
      Specified by:
      getBundle in interface OsgiWrapper
    • 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