Class ClassFactoryImpl

    • Constructor Detail

    • Method Detail

      • getComparator

        public ClassComparator getComparator()
        Returns the class comparator used to sort the super classes of an object.
        Returns:
        the class comparator.
      • registerClass

        protected void registerClass​(java.lang.Class key,
                                     ObjectDescription od)
        Registers an object description with the factory.
        Parameters:
        key - the key.
        od - the object description.
      • configure

        public void configure​(Configuration config)
        Configures this factory. The configuration contains several keys and their defined values. The given reference to the configuration object will remain valid until the report parsing or writing ends.

        The configuration contents may change during the reporting.

        Specified by:
        configure in interface ClassFactory
        Parameters:
        config - the configuration, never null
      • getConfig

        public Configuration getConfig()
        Returns the currently set configuration or null, if none was set.
        Returns:
        the configuration.
      • equals

        public boolean equals​(java.lang.Object o)
        Tests for equality.
        Specified by:
        equals in interface ClassFactory
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the object to test.
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code.
        Specified by:
        hashCode in interface ClassFactory
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code.