Class MockOsgiWrapper
- java.lang.Object
-
- com.yahoo.container.core.config.testutil.MockOsgiWrapper
-
- All Implemented Interfaces:
Osgi
,Osgi
,OsgiWrapper
public class MockOsgiWrapper extends Object implements OsgiWrapper
- Author:
- gjoranv
-
-
Constructor Summary
Constructors Constructor Description MockOsgiWrapper()
-
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 bundleId)
org.osgi.framework.Bundle[]
getBundles()
List<org.osgi.framework.Bundle>
getCurrentBundles()
Returns all bundles that have not been scheduled for uninstall.List<org.osgi.framework.Bundle>
install(String absolutePath)
-
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
installPlatformBundles, resolveClass, useApplicationBundles
-
Methods inherited from interface com.yahoo.osgi.Osgi
hasFelixFramework
-
-
-
-
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
-
getBundle
public org.osgi.framework.Bundle getBundle(com.yahoo.component.ComponentSpecification bundleId)
-
allowDuplicateBundles
public void allowDuplicateBundles(Collection<org.osgi.framework.Bundle> bundles)
- Specified by:
allowDuplicateBundles
in interfaceOsgi
-
-