| java.lang.Object com.sun.tck.wma.PropLoader
All known Subclasses: com.sun.tck.wma.sms.SMSMessageConnection, com.sun.tck.wma.cbs.CBSMessageConnection, com.sun.tck.wma.mms.MMSMessageConnection,
PropLoader | public class PropLoader (Code) | | Tool for load properties from environment or property object.
|
Method Summary | |
protected int | getIntProp(int valDefault, String envVar, String propsName, String propVar) Load integer property value from environment or
from connections.prop. | protected String | getProp(String valDefault, String envVar, String propsName, String propVar) Load string property value from environment or
from connections.prop. |
getIntProp | protected int getIntProp(int valDefault, String envVar, String propsName, String propVar)(Code) | | Load integer property value from environment or
from connections.prop.
When environment setting is defined, variable receives the value from it.
Else it is initialized from connections.prop.
Parameters: valDefault - the default value is assigned when neitherenvironment variable nor property is defined Parameters: envVar - the name of environment variable Parameters: propsName - the properties file name Parameters: propVar - the name of property variable string property value |
getProp | protected String getProp(String valDefault, String envVar, String propsName, String propVar)(Code) | | Load string property value from environment or
from connections.prop.
When environment setting is defined, variable receives the value from it.
Else it is initialized from connections.prop.
Parameters: valDefault - the default value is assigned when neitherenvironment variable nor property is defined Parameters: envVar - the name of environment variable Parameters: propsName - the properties file name Parameters: propVar - the name of property variable string property value |
|
|