Package com.yahoo.osgi
Class OsgiImpl
java.lang.Object
com.yahoo.osgi.OsgiImpl
- All Implemented Interfaces:
Osgi
- Author:
- Tony Vaagenes, bratseth, gjoranv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallowDuplicateBundles(Collection<org.osgi.framework.Bundle> bundles) Sets the collection of bundles to allow duplicates for.protected StringbundleResolutionErrorMessage(com.yahoo.component.ComponentSpecification bundleSpec) org.osgi.framework.BundlegetBundle(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.booleanList<org.osgi.framework.Bundle>Class<?>
-
Constructor Details
-
OsgiImpl
-
-
Method Details
-
getBundles
public org.osgi.framework.Bundle[] getBundles()- Specified by:
getBundlesin interfaceOsgi
-
getCurrentBundles
Description copied from interface:OsgiReturns all bundles that have not been scheduled for uninstall.- Specified by:
getCurrentBundlesin 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:
getBundlein 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:OsgiSets the collection of bundles to allow duplicates for.- Specified by:
allowDuplicateBundlesin interfaceOsgi
-
hasFelixFramework
public boolean hasFelixFramework()- Specified by:
hasFelixFrameworkin interfaceOsgi
-