Class DefaultVersionsHandler

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.core.impl.version.DefaultVersionsHandler
All Implemented Interfaces:
VersionsHandler, LogEnabled, ThreadSafe

Default implementation of a VersionHandler returning exactly two versions : that of the Runtime kernel and that of the running application.
Applications may subclass this default implementation
  • Constructor Details

  • Method Details

    • getVersions

      public final Collection<Version> getVersions()
      Description copied from interface: VersionsHandler
      Returns all Versions to be displayed in the administrator area
      Specified by:
      getVersions in interface VersionsHandler
      Returns:
      all Versions to be displayed in the administrator area
    • getAdditionalVersions

      Returns any additional versions informations displayable in the administrator area.
      Note: This implementation returns null.
      Returns:
      any additional versions informations displayable in the administrator area.
    • _getVersionFromClasspath

      protected final Version _getVersionFromClasspath(String path, String versionName)
      Helper for getting Version from an XML file in the classpath.
      The file must be formed like this :
      <version>
          <version>Version name</version>
          <date>Version date in format "yyyyMMdd'T'HHmmz"</date>
      </version>
      Parameters:
      path - a path in the classpath poiting to an XML file
      versionName - the name of the Version to create
      Returns:
      the created Version