|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.conf.DefaultConfiguration
This Configuration type initializes from the settings in
either the kodo.properties properties file. Any recognized
property can also be overridden by setting the System property of the same
name to the desired value.
If the kodo.properties file is not present the system will
search for the system.prefs XML file and load from it, though
the use of this file should be considered deprecated.
Either file must be located at the top level of the CLASSPATH for the
context loader of the creating thread. Alternatively, the location of
the properties file can be specified by setting the
com.solarmetric.kodo.properties system property; the
location of the XML resource can similarly be specified by setting the
solarmetric.system.prefs system property.
Note that changing any properties of this Configuration will not result in changes to the files, and therefore will not be visible to other instances or after the JVM has restarted.
See the Configuration interface for lists of recognized
properties, XML preferences.
| Constructor Summary | |
DefaultConfiguration()
|
|
| Method Summary | |
protected void |
checkFrozen()
Checks if the configuration has been frozen and if so throws a JDOUserException, otherwise returns silently. |
Object |
clone()
Returns a clone of this Configuration. |
Configuration |
configurationClone()
Return a new Configuration that is an exact copy of this one. |
boolean |
equals(Object other)
Performs the equality check based on set property values from toProperties(). |
void |
freeze()
Freeze this Configuration; if frozen, calls to checkFrozen() will throw a JDOUserException. |
void |
fromProperties(Properties properties)
Set this Configuration via the given Properties. |
int |
hashCode()
Computes hash code based on set property values from toProperties(). |
boolean |
isFrozen()
Return true if this Configuration has been frozen. |
protected void |
loadDefaults()
Invoke this method to load default values from properties/prefs. |
protected void |
setFromPreferences()
Override this method to support setting subclass state from preferences. |
protected void |
setFromProperties(TypedProperties props)
Override this method to support setting subclass state from properties. |
protected void |
setToProperties(TypedProperties props)
Override this method to support serializing subclass state to properties. |
Properties |
toProperties()
A Properties representation of this Configuration. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultConfiguration()
| Method Detail |
protected void loadDefaults()
public void freeze()
Configuration#checkFrozen will throw a JDOUserException.freeze in interface Configurationpublic boolean isFrozen()
ConfigurationisFrozen in interface Configurationpublic Object clone()
Configurationclone in interface Configurationclone in class Objectpublic Configuration configurationClone()
ConfigurationconfigurationClone in interface Configurationpublic Properties toProperties()
ConfigurationtoProperties in interface Configurationpublic void fromProperties(Properties properties)
ConfigurationfromProperties in interface Configurationprotected void setFromPreferences()
protected void setToProperties(TypedProperties props)
protected void setFromProperties(TypedProperties props)
protected void checkFrozen()
JDOUserException, otherwise returns silently. Implementations
should call this method before setting any state.public boolean equals(Object other)
toProperties().equals in class Objectpublic int hashCode()
toProperties().hashCode in class Object
|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||