Interface Configuration
- All Known Implementing Classes:
SimpleConfiguration, SubConfiguration
public interface Configuration
CardAgents relies on a Configuration object to provide
runtime configuration parameters such as merchant number, etc.
- Since:
- jPOS 1.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of a configuration property.Returns the value of a configuration property, or a default.String[]Returns all property values with the given name.booleangetBoolean(String propertyName) Returns the value of a configuration property as a boolean.booleangetBoolean(String propertyName, boolean defaultValue) Returns the value of a configuration property as a boolean, or a default.boolean[]getBooleans(String propertyName) Returns all values of a configuration property as a boolean array.doubleReturns the value of a configuration property as a double.doubleReturns the value of a configuration property as a double, or a default.double[]getDoubles(String propertyName) Returns all values of a configuration property as a double array.intReturns the value of a configuration property as an int.intReturns the value of a configuration property as an int, or a default.int[]Returns all values of a configuration property as an int array.longReturns the value of a configuration property as a long.longReturns the value of a configuration property as a long, or a default.long[]Returns all values of a configuration property as a long array.keySet()Returns the set of all property names in this configuration.voidStores a property value.
-
Method Details
-
get
-
getAll
-
getInts
-
getLongs
-
getDoubles
Returns all values of a configuration property as a double array.- Parameters:
propertyName- the property name- Returns:
- all values as double array
-
getBooleans
Returns all values of a configuration property as a boolean array.- Parameters:
propertyName- the property name- Returns:
- all values as boolean array
-
get
-
getInt
-
getInt
-
getLong
-
getLong
-
getDouble
-
getDouble
-
getBoolean
Returns the value of a configuration property as a boolean.- Parameters:
propertyName- the property name- Returns:
- the value as a boolean, or false if not found
-
getBoolean
Returns the value of a configuration property as a boolean, or a default.- Parameters:
propertyName- the property namedefaultValue- default if not found- Returns:
- the value as a boolean
-
put
-
keySet
-