|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo<T>
public abstract class BundleVersionInfo<T>
Provides bundle version information, which can be extracted from bundle files or Bundle objects.
Field Summary | |
---|---|
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 Summary | |
---|---|
BundleVersionInfo()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 present
Constructor Detail |
---|
public BundleVersionInfo()
Method Detail |
---|
public 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<?>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |