Class MockOsgiWrapper
- java.lang.Object
-
- com.yahoo.container.core.config.testutil.MockOsgiWrapper
-
- All Implemented Interfaces:
com.yahoo.container.di.Osgi
,Osgi
,OsgiWrapper
public class MockOsgiWrapper extends java.lang.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(java.util.Collection<org.osgi.framework.Bundle> bundles)
org.osgi.framework.Bundle
getBundle(com.yahoo.component.ComponentSpecification bundleId)
org.osgi.framework.Bundle[]
getBundles()
java.util.List<org.osgi.framework.Bundle>
getCurrentBundles()
Returns all bundles that have not been scheduled for uninstall.java.util.List<org.osgi.framework.Bundle>
getInitialBundles()
java.util.List<org.osgi.framework.Bundle>
install(java.lang.String absolutePath)
-
-
-
Method Detail
-
getInitialBundles
public java.util.List<org.osgi.framework.Bundle> getInitialBundles()
- Specified by:
getInitialBundles
in interfaceOsgi
-
getBundles
public org.osgi.framework.Bundle[] getBundles()
- Specified by:
getBundles
in interfaceOsgi
-
getCurrentBundles
public java.util.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)
- Specified by:
getBundle
in interfacecom.yahoo.container.di.Osgi
- Specified by:
getBundle
in interfaceOsgi
- Specified by:
getBundle
in interfaceOsgiWrapper
-
install
public java.util.List<org.osgi.framework.Bundle> install(java.lang.String absolutePath)
-
allowDuplicateBundles
public void allowDuplicateBundles(java.util.Collection<org.osgi.framework.Bundle> bundles)
- Specified by:
allowDuplicateBundles
in interfaceOsgi
-
-