Package com.yahoo.container.di
Interface Osgi
-
- All Known Subinterfaces:
OsgiWrapper
- All Known Implementing Classes:
MockOsgiWrapper
public interface Osgi
This interface has default implementations of all methods, to allow using it for testing, instead of mocking or a test implementation.- Author:
- gjoranv, Tony Vaagenes, ollivir
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default org.osgi.framework.Bundle
getBundle(com.yahoo.component.ComponentSpecification spec)
default void
installPlatformBundles(Collection<String> bundlePaths)
default Class<?>
resolveClass(BundleInstantiationSpecification spec)
default Set<org.osgi.framework.Bundle>
useApplicationBundles(Collection<com.yahoo.config.FileReference> bundles)
Returns the set of bundles that is not used by the current application generation, and therefore should be scheduled for uninstalling.
-
-
-
Method Detail
-
installPlatformBundles
default void installPlatformBundles(Collection<String> bundlePaths)
-
useApplicationBundles
default Set<org.osgi.framework.Bundle> useApplicationBundles(Collection<com.yahoo.config.FileReference> bundles)
Returns the set of bundles that is not used by the current application generation, and therefore should be scheduled for uninstalling.
-
resolveClass
default Class<?> resolveClass(BundleInstantiationSpecification spec)
-
getBundle
default org.osgi.framework.Bundle getBundle(com.yahoo.component.ComponentSpecification spec)
-
-