public abstract class BundleVersionInfo<T> extends Object implements Comparable<BundleVersionInfo<?>>
| Modifier and Type | Field and Description |
|---|---|
static String |
BND_LAST_MODIFIED
Name of the BND attribute that provides the bundle's last modified timestamp
|
static long |
BND_LAST_MODIFIED_MISSING
Value for
getBundleLastModified() if corresponding header
is not present |
static String |
SNAPSHOT_MARKER
Marker used by Maven to identify snapshots
|
| Constructor and Description |
|---|
BundleVersionInfo() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BundleVersionInfo<?> other)
Compare based on bundle version info, and for snapshots
based on
getBundleLastModified() |
abstract long |
getBundleLastModified()
Return the bundle last modification time, based on the BND_LAST_MODIFIED
manifest header, if available.
|
abstract String |
getBundleSymbolicName() |
abstract T |
getSource() |
abstract org.osgi.framework.Version |
getVersion() |
abstract boolean |
isBundle() |
abstract boolean |
isSnapshot() |
public static final String SNAPSHOT_MARKER
public static final String BND_LAST_MODIFIED
public static final long BND_LAST_MODIFIED_MISSING
getBundleLastModified() if corresponding header
is not presentpublic abstract T getSource()
public abstract boolean isBundle()
public abstract String getBundleSymbolicName()
public abstract org.osgi.framework.Version getVersion()
public abstract boolean isSnapshot()
public abstract long getBundleLastModified()
public int compareTo(BundleVersionInfo<?> other)
getBundleLastModified()compareTo in interface Comparable<BundleVersionInfo<?>>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.