|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.core.PropertiesManager
public class PropertiesManager
Provides access to properties and manages the portal base directory.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
private static java.lang.String |
PORTAL_PROPERTIES_FILE_NAME
|
static java.lang.String |
PORTAL_PROPERTIES_FILE_SYSTEM_VARIABLE
|
private static java.util.Properties |
props
|
| Constructor Summary | |
|---|---|
PropertiesManager()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getProperty(java.lang.String name)
Returns the value of a property for a given name. |
static boolean |
getPropertyAsBoolean(java.lang.String name)
Returns the value of a property for a given name. |
static byte |
getPropertyAsByte(java.lang.String name)
Returns the value of a property for a given name as a byte |
static double |
getPropertyAsDouble(java.lang.String name)
Returns the value of a property for a given name as a long |
static float |
getPropertyAsFloat(java.lang.String name)
Returns the value of a property for a given name as a float |
static int |
getPropertyAsInt(java.lang.String name)
Returns the value of a property for a given name as an int |
static long |
getPropertyAsLong(java.lang.String name)
Returns the value of a property for a given name as a long |
static short |
getPropertyAsShort(java.lang.String name)
Returns the value of a property for a given name as a short |
static java.lang.String |
getPropertyUntrimmed(java.lang.String name)
Returns the value of a property for a given name including any whitespace that may be at the beginning or end of the property value. |
protected static void |
loadProps()
Load up the portal properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
public static final java.lang.String PORTAL_PROPERTIES_FILE_SYSTEM_VARIABLE
private static final java.lang.String PORTAL_PROPERTIES_FILE_NAME
private static final java.util.Properties props
| Constructor Detail |
|---|
public PropertiesManager()
| Method Detail |
|---|
protected static void loadProps()
public static java.lang.String getProperty(java.lang.String name)
name - the name of the requested property
public static java.lang.String getPropertyUntrimmed(java.lang.String name)
name - the name of the requested property
public static boolean getPropertyAsBoolean(java.lang.String name)
true is
returned if the property is set to "true", "yes", "y", or "on"
(regardless of case),
and false is returned in all other cases.
name - the name of the requested property
true if property is set to "true", "yes", "y", or "on" regardless of case, otherwise falsepublic static byte getPropertyAsByte(java.lang.String name)
byte
name - the name of the requested property
bytepublic static short getPropertyAsShort(java.lang.String name)
short
name - the name of the requested property
shortpublic static int getPropertyAsInt(java.lang.String name)
int
name - the name of the requested property
intpublic static long getPropertyAsLong(java.lang.String name)
long
name - the name of the requested property
longpublic static float getPropertyAsFloat(java.lang.String name)
float
name - the name of the requested property
floatpublic static double getPropertyAsDouble(java.lang.String name)
long
name - the name of the requested property
long
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||