Package adams.core.classmanager
Class WekaClassManager
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.classmanager.WekaClassManager
-
- All Implemented Interfaces:
CustomClassManager
,LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Serializable
public class WekaClassManager extends CustomLoggingLevelObject implements 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
-
-
Constructor Summary
Constructors Constructor Description WekaClassManager()
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
forName
public Class forName(String classname) throws Exception
Instantiates the class by its name.- Specified by:
forName
in interfaceCustomClassManager
- 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 interfaceCustomClassManager
- Parameters:
o
- the object to copysilent
- whether to suppress error output- Returns:
- the deep copy
-
-