Class IipVersion

java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.IipVersion

public class IipVersion extends Object
Provides access to version and buildId of the platform. The data is stored in a file but modified accordingly by the CI for the deployed artifacts.
Author:
Holger Eichelberger, SSE
  • Field Details

    • MAVEN_SNAPSHOT_POSTFIX

      public static final String MAVEN_SNAPSHOT_POSTFIX
      See Also:
    • instance

      private static IipVersion instance
    • version

      private String version
    • buildId

      private String buildId
    • isRelease

      private boolean isRelease
  • Constructor Details

    • IipVersion

      private IipVersion()
      Initializes this instance. Prevents external creation.
  • Method Details

    • getInstance

      public static IipVersion getInstance()
      Returns the singleton instance of this class.
      Returns:
      the singleton instance
    • getVersion

      public String getVersion()
      Returns the version of the IIP-Ecosphere platform.
      Returns:
      the version, may be empty if unknown
    • getBuildId

      public String getBuildId()
      Returns the build id of the IIP-Ecosphere platform.
      Returns:
      the build id, may be "??" if unknown
    • isBuildIdSet

      public boolean isBuildIdSet()
      Returns whether the build id is set.
      Returns:
      true for is set, false else
    • isRelease

      public boolean isRelease()
      Returns whether this instance of the IIP-Ecosphere platform is a release version.
      Returns:
      true for release version, false else
    • getVersionInfo

      public String getVersionInfo()
      Formats version and build id for printout.
      Returns:
      the formatted version