Package adams.db
Class Conditions
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.db.Conditions
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
public class Conditions extends LoggingObject
Helper class for retrieving default conditions setups.- Version:
- $Revision$
- 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 name of the props file.protected Properties
m_Properties
the properties file.protected static Conditions
m_Singleton
the singleton instance.-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractConditions
getDefault(AbstractConditions cond)
Returns the default setup for the given conditions object.static Conditions
getSingleton()
Returns the singleton instance.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the name of the props file.- See Also:
- Constant Field Values
-
m_Singleton
protected static Conditions m_Singleton
the singleton instance.
-
m_Properties
protected Properties m_Properties
the properties file.
-
-
Method Detail
-
getDefault
public AbstractConditions getDefault(AbstractConditions cond)
Returns the default setup for the given conditions object.- Parameters:
cond
- the conditions object to return the default setup for- Returns:
- the default setup
-
getSingleton
public static Conditions getSingleton()
Returns the singleton instance. Instantiates it if necessary.- Returns:
- the singleton instance
-
-