@Beta
public class Osgis
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Osgis.ManifestHelper
The class is not used, staying for future reference.
|
Constructor and Description |
---|
Osgis() |
Modifier and Type | Method and Description |
---|---|
static Maybe<org.osgi.framework.Bundle> |
getBundle(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicNameOptionallyWithVersion)
Tries to find a bundle in the given framework with name matching either `name' or `name:version'.
|
static Maybe<org.osgi.framework.Bundle> |
getBundle(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicName,
java.lang.String version) |
static Maybe<org.osgi.framework.Bundle> |
getBundle(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicName,
org.osgi.framework.Version version) |
static java.util.List<org.osgi.framework.Bundle> |
getBundlesByName(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicName) |
static java.util.List<org.osgi.framework.Bundle> |
getBundlesByName(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicName,
com.google.common.base.Predicate<org.osgi.framework.Version> versionMatcher) |
static org.osgi.framework.Bundle |
install(org.osgi.framework.launch.Framework framework,
java.lang.String url)
Installs a bundle from the given URL, doing a check if already installed, and
using the
ResourceUtils loader for this project (brooklyn core) |
static boolean |
isExtensionBundle(org.osgi.framework.Bundle bundle) |
static org.apache.felix.framework.FrameworkFactory |
newFrameworkFactory() |
static org.osgi.framework.launch.Framework |
newFrameworkStarted(java.lang.String felixCacheDir,
boolean clean,
java.util.Map<?,?> extraStartupConfig) |
public static java.util.List<org.osgi.framework.Bundle> getBundlesByName(org.osgi.framework.launch.Framework framework, java.lang.String symbolicName, com.google.common.base.Predicate<org.osgi.framework.Version> versionMatcher)
public static java.util.List<org.osgi.framework.Bundle> getBundlesByName(org.osgi.framework.launch.Framework framework, java.lang.String symbolicName)
public static Maybe<org.osgi.framework.Bundle> getBundle(org.osgi.framework.launch.Framework framework, java.lang.String symbolicNameOptionallyWithVersion)
public static Maybe<org.osgi.framework.Bundle> getBundle(org.osgi.framework.launch.Framework framework, java.lang.String symbolicName, java.lang.String version)
public static Maybe<org.osgi.framework.Bundle> getBundle(org.osgi.framework.launch.Framework framework, java.lang.String symbolicName, org.osgi.framework.Version version)
public static org.apache.felix.framework.FrameworkFactory newFrameworkFactory()
public static org.osgi.framework.launch.Framework newFrameworkStarted(java.lang.String felixCacheDir, boolean clean, java.util.Map<?,?> extraStartupConfig)
public static org.osgi.framework.Bundle install(org.osgi.framework.launch.Framework framework, java.lang.String url) throws org.osgi.framework.BundleException
ResourceUtils
loader for this project (brooklyn core)org.osgi.framework.BundleException
public static boolean isExtensionBundle(org.osgi.framework.Bundle bundle)