Class OsgiImpl

  • All Implemented Interfaces:
    Osgi

    public class OsgiImpl
    extends java.lang.Object
    implements Osgi
    Author:
    Tony Vaagenes, bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      OsgiImpl​(com.yahoo.jdisc.application.OsgiFramework jdiscOsgi)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void allowDuplicateBundles​(java.util.Collection<org.osgi.framework.Bundle> bundles)  
      org.osgi.framework.Bundle getBundle​(com.yahoo.component.ComponentSpecification id)
      Returns the bundle of a given name having the highest matching version
      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)  
      java.lang.Class<java.lang.Object> resolveClass​(com.yahoo.container.bundle.BundleInstantiationSpecification spec)  
      • Methods inherited from class java.lang.Object

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

      • OsgiImpl

        public OsgiImpl​(com.yahoo.jdisc.application.OsgiFramework jdiscOsgi)
    • 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
      • resolveClass

        public java.lang.Class<java.lang.Object> resolveClass​(com.yahoo.container.bundle.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 java.util.List<org.osgi.framework.Bundle> install​(java.lang.String absolutePath)
        Specified by:
        install in interface Osgi
      • allowDuplicateBundles

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