Class CompositeConditionalKeyValueConfigurer
-
- All Implemented Interfaces:
-
tech.harmonysoft.oss.common.template.service.KeyValueConfigurer
public final class CompositeConditionalKeyValueConfigurer<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 Array<ConditionalConfigurer<K>>configurers
-
Constructor Summary
Constructors Constructor Description CompositeConditionalKeyValueConfigurer(Array<ConditionalConfigurer<K>> configurers)
-
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 Array<ConditionalConfigurer<K>>getConfigurers()Unitconfigure(DataModificationStrategy<K> toConfigure, KeyValueConfigurationContext<K> context)IntegerhashCode()Booleanequals(Object other)StringtoString()-
-
Constructor Detail
-
CompositeConditionalKeyValueConfigurer
CompositeConditionalKeyValueConfigurer(Array<ConditionalConfigurer<K>> configurers)
-
-
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.
-
getConfigurers
final Array<ConditionalConfigurer<K>> getConfigurers()
-
configure
Unit configure(DataModificationStrategy<K> toConfigure, KeyValueConfigurationContext<K> context)
-
-
-
-