Package adams.core.option
Class JenericCmdline
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.option.JenericCmdline
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
public class JenericCmdline extends LoggingObject
Manages what classes should be enhanced with with a generic commandline.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILENAME
the props file with the static class name lists.protected Map<Class,Boolean>
m_Cache
the cache of classes that have been checked (Class - true|false).protected List<Class>
m_Managed
the classes/interfaces to manage.protected static JenericCmdline
m_Singleton
the singleton.-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JenericCmdline()
Initializes the command-line handling.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Class>
getManaged()
Returns the list of classes/interfaces that are managed.static JenericCmdline
getSingleton()
Returns the singleton.protected void
initialize()
Initializes the caches.boolean
isHandled(Class cls)
Checks whether this class should be enhanced with a generic commandline.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the props file with the static class name lists.- See Also:
- Constant Field Values
-
m_Singleton
protected static JenericCmdline m_Singleton
the singleton.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the caches.
-
isHandled
public boolean isHandled(Class cls)
Checks whether this class should be enhanced with a generic commandline.- Parameters:
cls
- the class to check- Returns:
- true if to enhance
-
getManaged
public List<Class> getManaged()
Returns the list of classes/interfaces that are managed.- Returns:
- the managed classes
-
getSingleton
public static JenericCmdline getSingleton()
Returns the singleton.- Returns:
- the singleton
-
-