|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.util.SafeProperties
public class 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SafeProperties(java.util.Properties props,
java.lang.String systemLocation)
throws OpenEJBException
OpenEJBExcption - if the properties object passed in is null.
OpenEJBException| 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
OpenEJBException
public java.lang.Boolean getPropertyAsBoolean(java.lang.String key,
java.lang.Boolean defaultValue)
throws OpenEJBException
OpenEJBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||