com.Prominic.util
Class Props

java.lang.Object
  extended by com.Prominic.util.Props

public class Props
extends java.lang.Object

Server properties class wrapper. All methods are static. Once you set up to three Properties boundles, you can wrap any property result to int, long, boolean, or String using the wapper methods getInt(), getLong(), etc. The Properties boundles is searched sequentially, from the 1st to the 3rd. On error (excpetion) log.err() is called and the properties is removed from the Properites boundle.


Field Summary
private static java.util.Properties[] props
           
 
Constructor Summary
Props()
           
 
Method Summary
static boolean exists(java.lang.String name)
           
static boolean getBoolean(java.lang.String name)
           
static int getInt(java.lang.String name)
           
static long getLong(java.lang.String name)
           
static java.util.Properties[] getPropertiesGroup()
           
static java.lang.String getString(java.lang.String name)
           
static java.util.Enumeration keys()
          Insert the method's description here.
static void setPropertiesGroup(java.util.Properties[] props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

private static java.util.Properties[] props
Constructor Detail

Props

public Props()
Method Detail

exists

public static boolean exists(java.lang.String name)

getBoolean

public static boolean getBoolean(java.lang.String name)

getInt

public static int getInt(java.lang.String name)

getLong

public static long getLong(java.lang.String name)

getPropertiesGroup

public static java.util.Properties[] getPropertiesGroup()

getString

public static java.lang.String getString(java.lang.String name)

keys

public static java.util.Enumeration keys()
Insert the method's description here. Creation date: (7/17/2001 10:46:30 PM)

Returns:
java.util.Enumeration

setPropertiesGroup

public static void setPropertiesGroup(java.util.Properties[] props)