Class VersionInfo


  • public class VersionInfo
    extends java.lang.Object
    Allows to access version information (from the manifest).

    Works only in a servlet context.

    • Constructor Summary

      Constructors 
      Constructor Description
      VersionInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getGitHash()  
      java.lang.String getVersion()  
      void init()
      Output the version on the logs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VersionInfo

        public VersionInfo()
    • Method Detail

      • init

        @PostConstruct
        public final void init()
        Output the version on the logs.
      • getVersion

        public final java.lang.String getVersion()
        Returns:
        The version
      • getGitHash

        public final java.lang.String getGitHash()
        Returns:
        The GIT hash