public class ConfigDuplicator extends ConfigInspector
| Constructor and Description |
|---|
ConfigDuplicator() |
| Modifier and Type | Method and Description |
|---|---|
static <C> C |
cloneConfig(C source)
Creates deep clone of specified source config.
|
static <C> C |
completeConfig(C config,
C template)
Diplicates specified template and completes result with non default
values from specified config Non default values determinated by comparing
config values against values from new config instance, created internally
by calling default constructor.
|
static void |
copyConfig(Object source,
Object target)
Deep copy values from source into target config object.
|
static void |
copyConfig(Object source,
Object target,
boolean skipDefaults)
Deep copy values from source into target config object.
|
appendName, dump, dump, dump, getConfigParameterFields, getFieldType, getFieldValue, getIdentifierField, getParameterDescription, getParameterKey, hasObserver, newFieldInstance, newInstanceOfSameType, setFieldValuepublic static void copyConfig(Object source, Object target)
source - target - public static void copyConfig(Object source, Object target, boolean skipDefaults)
source - target - skipDefaults - public static <C> C cloneConfig(C source)
source - public static <C> C completeConfig(C config,
C template)
config - template - Copyright © 2019 Objekt-Kontor IS GmbH & Co KG. All rights reserved.