Package org.apache.cayenne.configuration
Class DefaultRuntimeProperties
java.lang.Object
org.apache.cayenne.configuration.DefaultRuntimeProperties
- All Implemented Interfaces:
- RuntimeProperties
public class DefaultRuntimeProperties extends Object implements RuntimeProperties
An implementation of 
RuntimeProperties that returns properties that
 were injected via a map in constructor. Each property can be overridden via
 -D command line option (i.e. in this implementation JVM system properties
 take precedence over any other property configuration mechanism).- Since:
- 3.1
- 
Field SummaryFields Modifier and Type Field Description protected Map<String,String>properties
- 
Constructor SummaryConstructors Constructor Description DefaultRuntimeProperties(Map<String,String> properties)
- 
Method SummaryModifier and Type Method Description Stringget(String key)Returns a String property value for a given key.Stringget(String key, String defaultValue)Returns a String property value for a given key or a default value if a value is not present in properties or is null.booleangetBoolean(String key, boolean defaultValue)intgetInt(String key, int defaultValue)longgetLong(String key, long defaultValue)
- 
Field Details- 
properties
 
- 
- 
Constructor Details- 
DefaultRuntimeProperties
 
- 
- 
Method Details- 
getDescription copied from interface:RuntimePropertiesReturns a String property value for a given key.- Specified by:
- getin interface- RuntimeProperties
 
- 
getDescription copied from interface:RuntimePropertiesReturns a String property value for a given key or a default value if a value is not present in properties or is null.- Specified by:
- getin interface- RuntimeProperties
- Since:
- 4.0
 
- 
getLong- Specified by:
- getLongin interface- RuntimeProperties
 
- 
getInt- Specified by:
- getIntin interface- RuntimeProperties
 
- 
getBoolean- Specified by:
- getBooleanin interface- RuntimeProperties
 
 
-