Package com.yahoo.osgi
Class OsgiImpl
java.lang.Object
com.yahoo.osgi.OsgiImpl
- All Implemented Interfaces:
Osgi
- Author:
- Tony Vaagenes, bratseth, gjoranv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allowDuplicateBundles
(Collection<org.osgi.framework.Bundle> bundles) Sets the collection of bundles to allow duplicates for.protected String
bundleResolutionErrorMessage
(com.yahoo.component.ComponentSpecification bundleSpec) org.osgi.framework.Bundle
getBundle
(com.yahoo.component.ComponentSpecification id) Returns the bundle of a given name having the highest matching versionorg.osgi.framework.Bundle[]
List<org.osgi.framework.Bundle>
Returns all bundles that have not been scheduled for uninstall.boolean
List<org.osgi.framework.Bundle>
Class<?>
-
Constructor Details
-
OsgiImpl
public OsgiImpl(com.yahoo.jdisc.application.OsgiFramework jdiscOsgi)
-
-
Method Details
-
getBundles
public org.osgi.framework.Bundle[] getBundles()- Specified by:
getBundles
in interfaceOsgi
-
getCurrentBundles
Description copied from interface:Osgi
Returns all bundles that have not been scheduled for uninstall.- Specified by:
getCurrentBundles
in interfaceOsgi
-
resolveClass
-
bundleResolutionErrorMessage
protected String bundleResolutionErrorMessage(com.yahoo.component.ComponentSpecification bundleSpec) -
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 interfaceOsgi
- 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
-
allowDuplicateBundles
Description copied from interface:Osgi
Sets the collection of bundles to allow duplicates for.- Specified by:
allowDuplicateBundles
in interfaceOsgi
-
hasFelixFramework
public boolean hasFelixFramework()- Specified by:
hasFelixFramework
in interfaceOsgi
-