EnricherBuilder

public abstract class EnricherBuilder<M extends Message, C extends EnrichableMessageContext, B extends EnricherBuilder<M, C, B>>

Allows to register enrichment functions used by the Enricher.

Inheritors

Constructors

Link copied to clipboard
protected void EnricherBuilder()
Creates new instance.

Functions

Link copied to clipboard
public abstract Enricher build()
Creates a new Enricher.
Link copied to clipboard
protected final B doAdd<S extends M, T extends Message>(Class<S> messageClassOrInterface, Class<T> enrichmentClass, EnrichmentFn<S, C, T> func)
Adds an enrichment function to the builder.
Link copied to clipboard
public B remove<T extends Message>(Class<M> eventClass, Class<T> enrichmentClass)
Removes the enrichment function for the passed event class.