Package 

Interface KeyValueConfigurer

  • All Implemented Interfaces:

    
    public interface KeyValueConfigurer<K extends Object>
    
                        

    Stateless modification strategy for any given DataModificationStrategy. It can hold static setup like key1 = value1 and key2 = value2, then the data is applied to the given key-values holder.

    However, there is a possible case that we want to apply rules based on some dynamic runtime state. For example, we receive an event to process and want to create new event based on it. We might define the configuration rules as below:

    • if received event's user' attribute value is equal to user1then create new event with user = user12`

    • if received event's user' attribute value is equal to user2then create new event with user = user22`

    • else use user = user3

    Such dynamic behavior is implemented via given context - it holds dynamic info to be consulted during given key-value holder modification. Every implementation of this interface is bound to particular type of context.