Package ch.kk7.confij.source.format
Class PropertiesFormat
java.lang.Object
ch.kk7.confij.source.format.PropertiesFormat
- All Implemented Interfaces:
ConfijFormat
- Direct Known Subclasses:
EnvvarSource,ExplicitPropertiesSource,SystemPropertiesSource
public class PropertiesFormat extends java.lang.Object implements ConfijFormat
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertiesFormat.PropertiesAnyFormat -
Constructor Summary
Constructors Constructor Description PropertiesFormat() -
Method Summary
Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>flatmapPrefixedBy(@NonNull java.util.Map<java.lang.String,java.lang.String> map, java.lang.String prefix)protected @NonNull java.lang.ObjectflatToNestedMap(@NonNull java.util.Map<java.lang.String,java.lang.String> map)protected java.lang.ObjectflatToNestedMapWithPrefix(java.util.Map<java.lang.String,java.lang.String> globalMap)protected ConfijSourceFormatExceptionkeyConflict(java.lang.String key1, java.lang.String key2)voidoverride(ConfijNode rootNode, java.lang.String configAsStr)protected voidoverrideWithDeepMap(ConfijNode node, java.lang.Object deepMap)protected voidoverrideWithFlatMap(ConfijNode simpleConfig, java.util.Map<java.lang.String,java.lang.String> map)protected voidoverrideWithProperties(ConfijNode simpleConfig, java.util.Properties properties)static PropertiesFormatwithoutPrefix()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PropertiesFormat
public PropertiesFormat()
-
-
Method Details
-
withoutPrefix
-
override
- Specified by:
overridein interfaceConfijFormat
-
overrideWithProperties
-
overrideWithFlatMap
protected void overrideWithFlatMap(ConfijNode simpleConfig, java.util.Map<java.lang.String,java.lang.String> map) -
overrideWithDeepMap
-
flatToNestedMapWithPrefix
protected java.lang.Object flatToNestedMapWithPrefix(java.util.Map<java.lang.String,java.lang.String> globalMap) -
flatmapPrefixedBy
protected java.util.Map<java.lang.String,java.lang.String> flatmapPrefixedBy(@NonNull @NonNull java.util.Map<java.lang.String,java.lang.String> map, java.lang.String prefix) -
flatToNestedMap
@NonNull protected @NonNull java.lang.Object flatToNestedMap(@NonNull @NonNull java.util.Map<java.lang.String,java.lang.String> map) -
keyConflict
-