Java Doc for PropertyManager.java in » Forum » yazd » com » Yasna » forum » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Manages properties for the entire Yazd system. Properties are merely
pieces of information that need to be saved in between server restarts. The
class also reports the version of Yazd.
At the moment, properties are stored in a Java Properties file. In a version
of Yazd coming soon, the properties file format will move to XML. XML
properties will allow hierarchical property structures which may mean the
API of this class will have to change.
Yazd properties are only meant to be set and retrevied by core Yazd classes.
Therefore, skin writers should probably ignore this class.
This class is implemented as a singleton since many classloaders seem to
take issue with doing classpath resource loading from a static context.
Gets a Yazd property. Yazd properties are stored in yazd.properties.
The properties file should be accesible from the classpath. Additionally,
it should have a path field that gives the full path to where the
file is located. Getting properties is a fast operation.
Parameters: name - the name of the property to get. the property specified by name.
Sets a Yazd property. If the property doesn't already exists, a new
one will be created.
Parameters: name - the name of the property being set. Parameters: value - the value of the property being set.