Package uk.ac.manchester.spinnaker.alloc
Class ServiceVersion
java.lang.Object
uk.ac.manchester.spinnaker.alloc.ServiceVersion
@Service @Role(1) public class ServiceVersion extends Object
The version information of the service.
-
Constructor Summary
Constructors Constructor Description ServiceVersion(String version, String buildTimestamp)
Create an instance. -
Method Summary
Modifier and Type Method Description String
getBuildTimestamp()
String
getFullVersion()
Version
getVersion()
-
Constructor Details
-
ServiceVersion
public ServiceVersion(@Value("${version}") String version, @Value("${build-timestamp}") String buildTimestamp)Create an instance.- Parameters:
version
- The version, injected from the POM by the build process.buildTimestamp
- The build timestamp, injected from the POM by the build process.
-
-
Method Details
-
getVersion
- Returns:
- The logical version number. Expected to at least approximately follow semver rules.
-
getFullVersion
- Returns:
- The full version identifier. Conforms only to Maven conventions.
-
getBuildTimestamp
- Returns:
- The build timestamp. The format of this is not intended for further machine parsing.
-