Package com.yahoo.osgi
Class OsgiImpl
- java.lang.Object
-
- com.yahoo.osgi.OsgiImpl
-
-
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(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 versionorg.osgi.framework.Bundle[]
getBundles()
List<org.osgi.framework.Bundle>
getCurrentBundles()
Returns all bundles that have not been scheduled for uninstall.boolean
hasFelixFramework()
List<org.osgi.framework.Bundle>
install(String absolutePath)
Class<Object>
resolveClass(BundleInstantiationSpecification spec)
-
-
-
Method Detail
-
getBundles
public org.osgi.framework.Bundle[] getBundles()
- Specified by:
getBundles
in interfaceOsgi
-
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 interfaceOsgi
-
resolveClass
public Class<Object> resolveClass(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 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
-
allowDuplicateBundles
public void allowDuplicateBundles(Collection<org.osgi.framework.Bundle> bundles)
- Specified by:
allowDuplicateBundles
in interfaceOsgi
-
hasFelixFramework
public boolean hasFelixFramework()
- Specified by:
hasFelixFramework
in interfaceOsgi
-
-