// File: PropertyManager. java
// This class is useless. You can remove it, but you need to remove the references to this class in the previous classes.
Package com. qingtuo. db. pool;
Import java. util .*;
Import java. io .*;
/**
* Manages properties for the entire Jive system. Properties are merely
* Pieces of information that need to be saved in between server restarts.
* <P>
* At the moment, properties are stored in a Java Properties file. In a version
* Of Jive coming soon, the properties file format will move to XML. XML
* Properties will allow hierarchical property structures which may mean
* API of this class will have to change.
* <P>
* Jive properties are only meant to be set and retrevied by core Jive classes.
* Therefore, skin writers shoshould probably ignore this class.
* <P>
* This class is implemented as a singleton since extends classloaders seem
* Take issue with doing classpath resource loading from a static context.
*/
Public class PropertyManager {
Private static PropertyManager manager = null;
Private static Object managerLock = new Object ();
Private static String propsName = "/pcc_2000.properties ";
/**
* Returns a Jive property
*
* @ Param name the name of the property to return.
* @ Returns the property value specified by name.
*/
Public static String getProperty (String name ){
If (manager = null ){
Synchronized (managerLock ){
If (manager = null ){