Class BuildInfo

java.lang.Object
eu.europeana.apikey.config.BuildInfo

@Configuration @PropertySource("classpath:build.properties") public class BuildInfo extends Object
Makes build information and the application name and description from the project's pom.xml available. While generating a war file this data is written automatically to the build.properties file which is read here. Note that the same information is also available in the Spring-Boot /actuator/info endpoint
  • Constructor Details

    • BuildInfo

      public BuildInfo()
  • Method Details

    • getAppName

      public String getAppName()
      Gets app name.
      Returns:
      the app name
    • getAppDescription

      public String getAppDescription()
      Gets app description.
      Returns:
      the app description
    • getAppVersion

      public String getAppVersion()
      Gets app version.
      Returns:
      the app version
    • getBuildNumber

      public String getBuildNumber()
      Gets build number.
      Returns:
      the build number