Package org.mycore.common.config
Class MCRProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
Like
Properties
but with in-place replacement of properties that want to append a value.
Properties for System.getProperties() have always precedence for Properties defined here.
key=value1 key=%key%,value2will be resolved to
key=value1,value2
- Since:
- 2013.12
- Author:
- Thomas Scheffler (yagee)
- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MCRProperties
copy
(Properties properties) Creates a newMCRProperties
instance with the values of the given properties.void
store
(OutputStream out, String comments) void
void
storeToXML
(OutputStream os, String comment, Charset charset) Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
MCRProperties
public MCRProperties()
-
-
Method Details
-
put
-
get
-
copy
Creates a newMCRProperties
instance with the values of the given properties. -
store
- Overrides:
store
in classProperties
- Throws:
IOException
-
store
- Overrides:
store
in classProperties
- Throws:
IOException
-
storeToXML
- Overrides:
storeToXML
in classProperties
- Throws:
IOException
-