Package org.apache.cayenne.configuration
Class DefaultRuntimeProperties
java.lang.Object
org.apache.cayenne.configuration.DefaultRuntimeProperties
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a String property value for a given key.Returns a String property value for a given key or a default value if a value is not present in properties or is null.boolean
getBoolean
(String key, boolean defaultValue) int
long
-
Field Details
-
properties
-
-
Constructor Details
-
DefaultRuntimeProperties
-
-
Method Details
-
get
Description copied from interface:RuntimeProperties
Returns a String property value for a given key.- Specified by:
get
in interfaceRuntimeProperties
-
get
Description copied from interface:RuntimeProperties
Returns 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:
get
in interfaceRuntimeProperties
- Since:
- 4.0
-
getLong
- Specified by:
getLong
in interfaceRuntimeProperties
-
getInt
- Specified by:
getInt
in interfaceRuntimeProperties
-
getBoolean
- Specified by:
getBoolean
in interfaceRuntimeProperties
-