Class MockOsgi

  • All Implemented Interfaces:
    com.yahoo.jdisc.application.OsgiFramework, Osgi

    public class MockOsgi
    extends com.yahoo.jdisc.test.NonWorkingOsgiFramework
    implements Osgi
    Author:
    Tony Vaagenes
    • Constructor Summary

      Constructors 
      Constructor Description
      MockOsgi()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.osgi.framework.Bundle getBundle​(com.yahoo.component.ComponentSpecification bundleId)  
      org.osgi.framework.Bundle[] getBundles()  
      java.util.List<org.osgi.framework.Bundle> getCurrentBundles()
      Returns all bundles that have not been scheduled for uninstall.
      java.util.List<org.osgi.framework.Bundle> getInitialBundles()  
      java.util.List<org.osgi.framework.Bundle> install​(java.lang.String absolutePath)  
      • Methods inherited from class com.yahoo.jdisc.test.NonWorkingOsgiFramework

        allowDuplicateBundles, bundleContext, bundles, getBundles, installBundle, refreshPackages, start, startBundles, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockOsgi

        public MockOsgi()
    • Method Detail

      • getInitialBundles

        public java.util.List<org.osgi.framework.Bundle> getInitialBundles()
        Specified by:
        getInitialBundles in interface Osgi
      • getBundles

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

        public java.util.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
      • install

        public java.util.List<org.osgi.framework.Bundle> install​(java.lang.String absolutePath)
        Specified by:
        install in interface Osgi