public class OsgiManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.Boolean> |
USE_OSGI |
Constructor and Description |
---|
OsgiManager(ManagementContext mgmt) |
Modifier and Type | Method and Description |
---|---|
Maybe<org.osgi.framework.Bundle> |
findBundle(CatalogItem.CatalogBundle catalogBundle) |
org.osgi.framework.launch.Framework |
getFramework() |
java.net.URL |
getResource(java.lang.String name,
java.lang.Iterable<CatalogItem.CatalogBundle> catalogBundles)
Iterates through catalogBundles until one contains a resource with the given name.
|
java.lang.Iterable<java.net.URL> |
getResources(java.lang.String name,
java.lang.Iterable<CatalogItem.CatalogBundle> catalogBundles) |
static boolean |
isBundleNameEqualOrAbsent(CatalogItem.CatalogBundle bundle,
org.osgi.framework.Bundle b) |
void |
registerBundle(CatalogItem.CatalogBundle bundle) |
void |
start() |
void |
stop() |
<T> Maybe<java.lang.Class<T>> |
tryResolveClass(java.lang.String type,
CatalogItem.CatalogBundle... catalogBundles) |
<T> Maybe<java.lang.Class<T>> |
tryResolveClass(java.lang.String type,
java.lang.Iterable<CatalogItem.CatalogBundle> catalogBundles) |
public static final ConfigKey<java.lang.Boolean> USE_OSGI
public OsgiManager(ManagementContext mgmt)
public void start()
public void stop()
public void registerBundle(CatalogItem.CatalogBundle bundle)
public static boolean isBundleNameEqualOrAbsent(CatalogItem.CatalogBundle bundle, org.osgi.framework.Bundle b)
public <T> Maybe<java.lang.Class<T>> tryResolveClass(java.lang.String type, CatalogItem.CatalogBundle... catalogBundles)
public <T> Maybe<java.lang.Class<T>> tryResolveClass(java.lang.String type, java.lang.Iterable<CatalogItem.CatalogBundle> catalogBundles)
public Maybe<org.osgi.framework.Bundle> findBundle(CatalogItem.CatalogBundle catalogBundle)
public java.net.URL getResource(java.lang.String name, java.lang.Iterable<CatalogItem.CatalogBundle> catalogBundles)
public java.lang.Iterable<java.net.URL> getResources(java.lang.String name, java.lang.Iterable<CatalogItem.CatalogBundle> catalogBundles)
public org.osgi.framework.launch.Framework getFramework()