Package adams.core.classmanager
Class WekaClassManager
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.classmanager.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
-
-
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.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
forName
public Class forName(String classname) throws Exception
Instantiates the class by its name.- Specified by:
forName
in interfaceadams.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 interfaceadams.core.classmanager.CustomClassManager
- Parameters:
o
- the object to copysilent
- whether to suppress error output- Returns:
- the deep copy
-
-