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
Modifier and TypeMethodDescriptiondefault org.osgi.framework.Bundle
getBundle
(com.yahoo.component.ComponentSpecification spec) default void
installPlatformBundles
(Collection<String> bundlePaths) default Class<?>
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 Details
-
installPlatformBundles
-
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
-
getBundle
default org.osgi.framework.Bundle getBundle(com.yahoo.component.ComponentSpecification spec)
-