-
- All Implemented Interfaces:
-
tech.harmonysoft.oss.common.template.service.KeyValueConfigurer
public final class DynamicLeafKeyValueConfigurerWithDynamicKey<K extends Object> implements KeyValueConfigurer<K>
-
-
Field Summary
Fields Modifier and Type Field Description private final Set<K>keysprivate final Map<K, Set<Object>>staticConfigurationprivate final KkeyToConfigureprivate final StringdynamicKey
-
Constructor Summary
Constructors Constructor Description DynamicLeafKeyValueConfigurerWithDynamicKey(K keyToConfigure, String dynamicKey)
-
Method Summary
Modifier and Type Method Description Set<K>getKeys()Set of keys which might be asked from the context during target value configuration or used as DataModificationStrategy.setValue parameter. Map<K, Set<Object>>getStaticConfiguration()Shows all possible static configuration which can be done by the current configurer. final KgetKeyToConfigure()final StringgetDynamicKey()Unitconfigure(DataModificationStrategy<K> toConfigure, KeyValueConfigurationContext<K> context)StringtoString()-
-
Method Detail
-
getKeys
Set<K> getKeys()
Set of keys which might be asked from the context during target value configuration or used as DataModificationStrategy.setValue parameter.
-
getStaticConfiguration
Map<K, Set<Object>> getStaticConfiguration()
Shows all possible static configuration which can be done by the current configurer. For example, consider setup like below:
key1: value1 key2: value2This property would expose
mapOf("key1" to setOf("value1"), "key2" to setOf("value2"))then;key1: - When: key3: value31 Then: value11 - Then: value12 key2: value2This property would expose
mapOf("key1" to setOf("value11", "value12"), "key2" to setOf("value2"))then.
-
getKeyToConfigure
final K getKeyToConfigure()
-
getDynamicKey
final String getDynamicKey()
-
configure
Unit configure(DataModificationStrategy<K> toConfigure, KeyValueConfigurationContext<K> context)
-
-
-
-