public static class Osgis.BundleFinder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Osgis.BundleFinder |
bundle(CatalogItem.CatalogBundle bundle) |
Maybe<org.osgi.framework.Bundle> |
find()
Finds the best matching bundle.
|
java.util.List<org.osgi.framework.Bundle> |
findAll()
Finds all matching bundles, in decreasing version order.
|
Maybe<org.osgi.framework.Bundle> |
findUnique()
Finds the matching bundle, requiring it to be unique.
|
java.lang.String |
getConstraintsDescription() |
Osgis.BundleFinder |
id(java.lang.String symbolicNameOptionallyWithVersion) |
Osgis.BundleFinder |
preferringFromUrl(java.lang.String url)
Looks for a bundle matching the given URL;
unlike
requiringFromUrl(String) however, if the URL does not match any bundles
it will return other matching bundles if a symbolicName(String) is specified. |
Osgis.BundleFinder |
requiringFromUrl(java.lang.String url)
Requires the bundle to have the given URL set as its location.
|
Osgis.BundleFinder |
satisfying(com.google.common.base.Predicate<? super org.osgi.framework.Bundle> predicate) |
Osgis.BundleFinder |
symbolicName(java.lang.String symbolicName) |
java.lang.String |
toString() |
Osgis.BundleFinder |
version(com.google.common.base.Predicate<org.osgi.framework.Version> versionPredicate) |
Osgis.BundleFinder |
version(java.lang.String version) |
public Osgis.BundleFinder symbolicName(java.lang.String symbolicName)
public Osgis.BundleFinder version(java.lang.String version)
public Osgis.BundleFinder id(java.lang.String symbolicNameOptionallyWithVersion)
public Osgis.BundleFinder bundle(CatalogItem.CatalogBundle bundle)
public Osgis.BundleFinder preferringFromUrl(java.lang.String url)
requiringFromUrl(String)
however, if the URL does not match any bundles
it will return other matching bundles if a symbolicName(String)
is specified.public Osgis.BundleFinder requiringFromUrl(java.lang.String url)
public Maybe<org.osgi.framework.Bundle> find()
public Maybe<org.osgi.framework.Bundle> findUnique()
public java.util.List<org.osgi.framework.Bundle> findAll()
public java.lang.String getConstraintsDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public Osgis.BundleFinder version(com.google.common.base.Predicate<org.osgi.framework.Version> versionPredicate)
public Osgis.BundleFinder satisfying(com.google.common.base.Predicate<? super org.osgi.framework.Bundle> predicate)