Class SimpleConfiguration
java.lang.Object
org.jpos.core.SimpleConfiguration
- All Implemented Interfaces:
Serializable, Configuration
- Since:
- jPOS 1.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of the configuration property named name, or the default value def.String[]booleangetBoolean(String name) booleangetBoolean(String name, boolean def) boolean[]getBooleans(String name) doubledoubledouble[]getDoubles(String name) intintint[]longlonglong[]inthashCode()keySet()voidvoidtoString()
-
Constructor Details
-
SimpleConfiguration
public SimpleConfiguration() -
SimpleConfiguration
-
SimpleConfiguration
- Throws:
IOException
-
-
Method Details
-
get
Returns the value of the configuration property named name, or the default value def. If the property value has the format${xxx}then its value is taken from a system property if it exists, or an environment variable. System property takes priority over environment variable. If the format is$sys{...}we read only a system property. if the format is$env{...}only an environment variable is used.- Specified by:
getin interfaceConfiguration- Parameters:
name- The configuration property key name.def- The default value.- Returns:
- The value stored under name, or def if there's no configuration property under the given name.
-
getAll
- Specified by:
getAllin interfaceConfiguration- Parameters:
name- ditto- Returns:
- all properties with a given name (or a zero-length array)
-
getInts
- Specified by:
getIntsin interfaceConfiguration
-
getLongs
- Specified by:
getLongsin interfaceConfiguration
-
getDoubles
- Specified by:
getDoublesin interfaceConfiguration
-
getBooleans
- Specified by:
getBooleansin interfaceConfiguration
-
get
- Specified by:
getin interfaceConfiguration
-
getInt
- Specified by:
getIntin interfaceConfiguration
-
getInt
- Specified by:
getIntin interfaceConfiguration
-
getLong
- Specified by:
getLongin interfaceConfiguration
-
getLong
- Specified by:
getLongin interfaceConfiguration
-
getDouble
- Specified by:
getDoublein interfaceConfiguration
-
getDouble
- Specified by:
getDoublein interfaceConfiguration
-
getBoolean
- Specified by:
getBooleanin interfaceConfiguration
-
getBoolean
- Specified by:
getBooleanin interfaceConfiguration
-
load
- Throws:
IOException
-
put
- Specified by:
putin interfaceConfiguration- Parameters:
name- the Property namevalue- typically a String, but could be a String[] too
-
keySet
- Specified by:
keySetin interfaceConfiguration
-
equals
-
hashCode
-
toString
-