Class WekaClassManager

  • All Implemented Interfaces:
    adams.core.classmanager.CustomClassManager, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, Serializable

    public class WekaClassManager
    extends adams.core.logging.CustomLoggingLevelObject
    implements adams.core.classmanager.CustomClassManager
    Uses WekaPackageClassLoaderManager.forName(...).
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object deepCopy​(Object o, boolean silent)
      Creates a deep copy of the given object (must be serializable!).
      Class forName​(String classname)
      Instantiates the class by its name.
      • Methods inherited from class adams.core.logging.CustomLoggingLevelObject

        setLoggingLevel
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
    • Constructor Detail

      • WekaClassManager

        public WekaClassManager()
    • Method Detail

      • forName

        public Class forName​(String classname)
                      throws Exception
        Instantiates the class by its name.
        Specified by:
        forName in interface adams.core.classmanager.CustomClassManager
        Parameters:
        classname - the name of the class
        Returns:
        the class
        Throws:
        Exception - if instantiation fails
      • deepCopy

        public Object deepCopy​(Object o,
                               boolean silent)
        Creates a deep copy of the given object (must be serializable!). Returns null in case of an error.
        Specified by:
        deepCopy in interface adams.core.classmanager.CustomClassManager
        Parameters:
        o - the object to copy
        silent - whether to suppress error output
        Returns:
        the deep copy