DomainEventFunctionRegistrar

Registrar for domain event processing functions.

This class extends AbstractEventFunctionRegistrar to provide domain event specific function registration. It resolves processors by analyzing their annotations and creating message functions for event handling.

Parameters

actual

The underlying message function registrar (default: SimpleMessageFunctionRegistrar)

See also

Constructors

Link copied to clipboard
constructor(actual: MessageFunctionRegistrar<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>> = SimpleMessageFunctionRegistrar())

Properties

Link copied to clipboard

The underlying message function registrar (default: SimpleMessageFunctionRegistrar)

Link copied to clipboard
open override val functions: Set<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>>

The immutable set of all currently registered functions.

Functions

Link copied to clipboard

Creates a filtered view of this registrar.

Link copied to clipboard
open override fun register(function: MessageFunction<Any, DomainEventExchange<*>, Mono<*>>)

Registers a message function with this registrar.

Link copied to clipboard
fun registerProcessor(processor: Any)

Registers an event processor.

Link copied to clipboard
open override fun resolveProcessor(processor: Any): Set<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>>

Resolves a processor into domain event message functions.

Link copied to clipboard

Finds all registered functions that support processing the given message.

Link copied to clipboard
open override fun unregister(function: MessageFunction<Any, DomainEventExchange<*>, Mono<*>>)

Unregisters a message function from this registrar.