Class Info

  • All Implemented Interfaces:
    InfoMBean

    public class Info
    extends java.lang.Object
    implements InfoMBean
    This Info bean is registered as MBean and provides some information about PatternTesting. Since 1.6 it can be now subclassed and provides information from the Manifest file.
    Since:
    1.4 (06.04.2014)
    Author:
    oliver (boehm@javatux.de)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Info PATTERNTESTING
      Info about PatternTesting itself.
    • Constructor Summary

      Constructors 
      Constructor Description
      Info()
      Instantiates a new info.
      Info​(java.lang.Class<?> clazz)
      Instantiates a new builds the info.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getBuildTime()
      Gets the builds the time of PatternTesting.
      java.util.SortedMap<java.lang.String,​java.lang.String> getInfos()
      Gets the properties, but sorted and as map.
      java.util.jar.Manifest getManifest()
      Gets the manifest.
      java.net.URI getManifestURI()
      Gets the manifest uri.
      java.util.Properties getProperties()
      Gets the properties.
      java.lang.String getVersion()
      Gets the version.
      • Methods inherited from class java.lang.Object

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

      • PATTERNTESTING

        public static final Info PATTERNTESTING
        Info about PatternTesting itself.
    • Constructor Detail

      • Info

        public Info()
        Instantiates a new info.
      • Info

        public Info​(java.lang.Class<?> clazz)
        Instantiates a new builds the info.
        Parameters:
        clazz - die Klasse, von der ich die Build-Infos will.
    • Method Detail

      • getManifest

        public java.util.jar.Manifest getManifest()
        Gets the manifest.
        Returns:
        the manifest
        Since:
        1.6
      • getManifestURI

        public java.net.URI getManifestURI()
        Gets the manifest uri.
        Specified by:
        getManifestURI in interface InfoMBean
        Returns:
        the manifest uri
        Since:
        1.6
      • getProperties

        public java.util.Properties getProperties()
        Gets the properties.
        Returns:
        the properties
        Since:
        1.6
      • getInfos

        public java.util.SortedMap<java.lang.String,​java.lang.String> getInfos()
        Gets the properties, but sorted and as map.
        Returns:
        the infos
        See Also:
        getProperties()
      • getBuildTime

        public java.util.Date getBuildTime()
        Gets the builds the time of PatternTesting.
        Specified by:
        getBuildTime in interface InfoMBean
        Returns:
        the builds the time