nl.chess.it.util.config.examples.simple
Class SimpleConfig
java.lang.Object
nl.chess.it.util.config.Config
nl.chess.it.util.config.examples.simple.SimpleConfig
- public class SimpleConfig
- extends Config
This class is a simple configuration example. It shows how to use the getXxx()
methods from the parent class. In
the Application class
it is shown how the initialization can be dealt with nicely.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Guus Bosman (Chess iT)
Field Summary |
static java.lang.String |
RESOURCE_NAME
Name of the file we are looking for to read the configuration. |
Constructor Summary |
SimpleConfig(java.lang.String resourceName)
Creates a new SimpleConfig object. |
Methods inherited from class nl.chess.it.util.config.Config |
getBoolean, getDate, getDurationInMs, getExistingReadableFile, getInt, getMessageFormatPattern, getSizeInBytes, getString, getString, getStringArrayFromCommaString, getStringArrayFromCommaString, getURL, getValue, getWritableFile, hasValue, testMessageFormat, validateConfiguration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE_NAME
public static final java.lang.String RESOURCE_NAME
- Name of the file we are looking for to read the configuration.
- See Also:
- Constant Field Values
SimpleConfig
public SimpleConfig(java.lang.String resourceName)
- Creates a new SimpleConfig object.
isThisANiceClass
public boolean isThisANiceClass()
getWelcomeText
public java.lang.String getWelcomeText()
getNiceWebsite
public java.net.URL getNiceWebsite()
getNumberOfDays
public int getNumberOfDays()
Copyright © 2003-2005 Chess-iT. All Rights Reserved.