Class MockOsgiWrapper
java.lang.Object
com.yahoo.container.core.config.testutil.MockOsgiWrapper
- All Implemented Interfaces:
Osgi
,Osgi
,OsgiWrapper
- Author:
- gjoranv
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.container.di.Osgi
Osgi.GenerationStatus
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allowDuplicateBundles
(Collection<org.osgi.framework.Bundle> bundles) Sets the collection of bundles to allow duplicates for.org.osgi.framework.Bundle
getBundle
(com.yahoo.component.ComponentSpecification bundleId) org.osgi.framework.Bundle[]
List<org.osgi.framework.Bundle>
Returns all bundles that have not been scheduled for uninstall.List<org.osgi.framework.Bundle>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.container.di.Osgi
completeBundleGeneration, installPlatformBundles, resolveClass, useApplicationBundles
Methods inherited from interface com.yahoo.osgi.Osgi
hasFelixFramework
-
Constructor Details
-
MockOsgiWrapper
public MockOsgiWrapper()
-
-
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
-
getBundle
public org.osgi.framework.Bundle getBundle(com.yahoo.component.ComponentSpecification bundleId) -
install
-
allowDuplicateBundles
Description copied from interface:Osgi
Sets the collection of bundles to allow duplicates for.- Specified by:
allowDuplicateBundles
in interfaceOsgi
-