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()
Return the bundle symbolic name, null if not available
|
abstract T |
getSource()
Return the source of information: underlying File or Bundle
|
abstract org.osgi.framework.Version |
getVersion()
Return the bundle version, null if not available
|
abstract boolean |
isBundle()
True if the provided data is a valid bundle
|
abstract boolean |
isSnapshot()
True if the bundle version indicates a snapshot
|
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 © 2014 The Apache Software Foundation. All rights reserved.