|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.ProductInformation
public class ProductInformation
This class provides information about the jadice document platform product. The product
information comes in two types: "global", coarse-grained information provided by the static
getter methods (e.g. getVersion()
) and per-module (i.e. per-artifact) information
provided by the getArtifacts()
/getArtifact(String)
methods.
Nested Class Summary | |
---|---|
static class |
ProductInformation.Artifact
This class describes a single artifact. |
Field Summary | |
---|---|
static String |
TEXT_DO_NOT_USE_IN_PRODUCTION
|
static String |
TEXT_UNSUPPORTED_PREVIEW_VERSION
|
Constructor Summary | |
---|---|
ProductInformation()
|
Method Summary | |
---|---|
static ProductInformation.Artifact |
getArtifact(String compositeID)
Get the artifact with the given composite id of the form group-ID:artifact-ID . |
static String |
getArtifactID()
Return the main maven artifact-ID for jadice document platform. |
static Map<String,ProductInformation.Artifact> |
getArtifacts()
Return a map of artifacts contained in this installation. |
static Date |
getBuildTimestamp()
Return the build timestamp for the main jadice document platform artifact. |
static String |
getGroupID()
Return the main maven group-ID for jadice document platform. |
static int |
getMajorVersion()
Return the major version number, i.e. |
static int |
getMinorVersion()
Return the minor version number, i.e. |
static int |
getPatchLevel()
Return the patch level, i.e. |
static String |
getProductId()
Return the product-ID used for prefixing qualified log messages. |
static int |
getReleaseVersion()
Return the release version number, i.e. |
static String |
getVersion()
Return the full version string for the main jadice document platform artifact. |
static int |
getVersionPart(int i)
Return the i'th version part of the version number of the jadice document platform. |
static boolean |
isRelease()
Return whether this is a release version. |
static boolean |
isSnapshot()
Return whether this is a snapshot version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEXT_DO_NOT_USE_IN_PRODUCTION
public static final String TEXT_UNSUPPORTED_PREVIEW_VERSION
Constructor Detail |
---|
public ProductInformation()
Method Detail |
---|
public static Map<String,ProductInformation.Artifact> getArtifacts()
ProductInformation.Artifact
s indexed by composite id.public static String getProductId()
PRODUCT_ID
public static String getArtifactID()
public static String getGroupID()
public static String getVersion()
public static int getVersionPart(int i)
i
- the part to retrieve, i.e. part 0 = major version, part 1 = minor version etc.
getMajorVersion()
,
getMinorVersion()
,
getReleaseVersion()
,
getPatchLevel()
public static boolean isSnapshot()
true
for snapshot versionspublic static boolean isRelease()
true
for release versionspublic static Date getBuildTimestamp()
public static int getMajorVersion()
public static int getMinorVersion()
public static int getReleaseVersion()
public static int getPatchLevel()
public static ProductInformation.Artifact getArtifact(String compositeID)
group-ID:artifact-ID
.
compositeID
- the composite id
ProductInformation.Artifact
or null
if it was not found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |