|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.util.SafeProperties
Constructor Summary | |
SafeProperties(Properties props,
String systemLocation)
Creates a new SafeProperties usign the Properties object passed in. |
Method Summary | |
String |
getProperty(String key)
Returns the value of the key. |
String |
getProperty(String key,
String defaultValue)
Returns the value of the key. |
boolean |
getPropertyAsBoolean(String key)
Returns the value of the key as an boolean. |
Boolean |
getPropertyAsBoolean(String key,
Boolean defaultValue)
Returns the value of the key as an boolean. |
int |
getPropertyAsInt(String key)
Returns the value of the key as an int. |
int |
getPropertyAsInt(String key,
int defaultValue)
Returns the value of the key as an int. |
Integer |
getPropertyAsInteger(String key)
Returns the value of the key as an Integer. |
Integer |
getPropertyAsInteger(String key,
Integer defaultValue)
Returns the value of the key as an Integer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SafeProperties(Properties props, String systemLocation) throws OpenEJBException
OpenEJBExcption
- if the properties object passed in is null.
OpenEJBException
Method Detail |
public String getProperty(String key) throws OpenEJBException
OpenEJBException
- if the property does not exist or is null.public String getProperty(String key, String defaultValue) throws OpenEJBException
OpenEJBException
- if the property does not exist or is null.public int getPropertyAsInt(String key) throws OpenEJBException
OpenEJBException
- if the property does not exist, is null, or cannot be converted to an int.public int getPropertyAsInt(String key, int defaultValue) throws OpenEJBException
OpenEJBException
- if the property does not exist, is null, or cannot be converted to an int.public Integer getPropertyAsInteger(String key, Integer defaultValue) throws OpenEJBException
OpenEJBException
- if the property does not exist, is null, or cannot be converted to an Integer.public Integer getPropertyAsInteger(String key) throws OpenEJBException
OpenEJBException
- if the property does not exist, is null, or cannot be converted to an Integer.public boolean getPropertyAsBoolean(String key) throws OpenEJBException
OpenEJBException
public Boolean getPropertyAsBoolean(String key, Boolean defaultValue) throws OpenEJBException
OpenEJBException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |