public class BrooklynVersion extends java.lang.Object implements BrooklynVersionService
Also retrieves the SHA-1 from any OSGi bundle, and checks that the maven and osgi versions match.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BrooklynVersion.BrooklynFeature | 
| Modifier and Type | Field and Description | 
|---|---|
| static BrooklynVersion | INSTANCE | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkVersions() | 
| static java.lang.String | get() | 
| static java.lang.Iterable<BrooklynVersion.BrooklynFeature> | getFeatures(ManagementContext mgmt) | 
| static BrooklynVersion | getInstance() | 
| java.lang.String | getSha1FromOsgiManifest()SHA1 of the last commit to brooklyn at the time this build was made. | 
| java.lang.String | getVersion() | 
| java.lang.String | getVersionFromClasspath()Deprecated. 
 since 0.7.0, in favour of the more specific methods (and does anyone need that default value?) | 
| java.lang.String | getVersionFromMavenProperties() | 
| java.lang.String | getVersionFromOsgiManifest() | 
| static java.lang.String | getVersionFromStatic()Deprecated. 
 since 0.7.0, redundant with  get() | 
| static boolean | isDevelopmentEnvironment()Returns whether this is a Brooklyn dev environment,
 specifically core/target/classes/ is on the classpath for the org.apache.brooklyn.core project. | 
| boolean | isSnapshot() | 
| void | logSummary() | 
public static final BrooklynVersion INSTANCE
public void checkVersions()
checkVersions in interface BrooklynVersionService@Deprecated public java.lang.String getVersionFromClasspath()
getVersionFromMavenProperties() and getVersionFromOsgiManifest().@Nullable public java.lang.String getVersionFromMavenProperties()
getVersionFromMavenProperties in interface BrooklynVersionService@Nullable public java.lang.String getVersionFromOsgiManifest()
getVersionFromOsgiManifest in interface BrooklynVersionService@Nullable public java.lang.String getSha1FromOsgiManifest()
BrooklynVersionServicegetSha1FromOsgiManifest in interface BrooklynVersionServicepublic java.lang.String getVersion()
getVersion in interface BrooklynVersionServicepublic boolean isSnapshot()
isSnapshot in interface BrooklynVersionServicepublic static boolean isDevelopmentEnvironment()
public void logSummary()
logSummary in interface BrooklynVersionService@Deprecated public static java.lang.String getVersionFromStatic()
get()public static java.lang.String get()
public static BrooklynVersion getInstance()
public static java.lang.Iterable<BrooklynVersion.BrooklynFeature> getFeatures(ManagementContext mgmt)
mgmt - The context to search for features.