@Beta
public class Osgis
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Osgis.BundleFinder |
static class |
Osgis.ManifestHelper
The class is not used, staying for future reference.
|
static class |
Osgis.VersionedName |
Constructor and Description |
---|
Osgis() |
Modifier and Type | Method and Description |
---|---|
static Osgis.BundleFinder |
bundleFinder(org.osgi.framework.launch.Framework framework) |
static Maybe<org.osgi.framework.Bundle> |
getBundle(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicNameOptionallyWithVersion)
Deprecated.
since 0.7.0 use
bundleFinder(Framework) |
static Maybe<org.osgi.framework.Bundle> |
getBundle(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicName,
java.lang.String version)
Deprecated.
since 0.7.0 use
bundleFinder(Framework) |
static Maybe<org.osgi.framework.Bundle> |
getBundle(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicName,
org.osgi.framework.Version version)
Deprecated.
since 0.7.0 use
bundleFinder(Framework) |
static java.util.List<org.osgi.framework.Bundle> |
getBundlesByName(org.osgi.framework.launch.Framework framework,
java.lang.String symbolicName)
Deprecated.
since 0.7.0 use
bundleFinder(Framework) |
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)
Deprecated.
since 0.7.0 use
bundleFinder(Framework) |
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) |
static Maybe<Osgis.VersionedName> |
parseOsgiIdentifier(java.lang.String symbolicNameOptionalWithVersion)
Takes a string which might be of the form "symbolic-name" or "symbolic-name:version" (or something else entirely)
and returns a VersionedName.
|
public static Osgis.BundleFinder bundleFinder(org.osgi.framework.launch.Framework framework)
@Deprecated 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)
bundleFinder(Framework)
@Deprecated public static java.util.List<org.osgi.framework.Bundle> getBundlesByName(org.osgi.framework.launch.Framework framework, java.lang.String symbolicName)
bundleFinder(Framework)
@Deprecated public static Maybe<org.osgi.framework.Bundle> getBundle(org.osgi.framework.launch.Framework framework, java.lang.String symbolicNameOptionallyWithVersion)
bundleFinder(Framework)
@Deprecated public static Maybe<org.osgi.framework.Bundle> getBundle(org.osgi.framework.launch.Framework framework, java.lang.String symbolicName, java.lang.String version)
bundleFinder(Framework)
@Deprecated public static Maybe<org.osgi.framework.Bundle> getBundle(org.osgi.framework.launch.Framework framework, java.lang.String symbolicName, org.osgi.framework.Version version)
bundleFinder(Framework)
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)
public static Maybe<Osgis.VersionedName> parseOsgiIdentifier(java.lang.String symbolicNameOptionalWithVersion)
Maybe.absent()
if not valid, with a suitable error message).