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