MessageFunctionAccessor

interface MessageFunctionAccessor<P : Any, in M : MessageExchange<*, *>, out R> : MessageFunction<P, M, R>

An accessor-based implementation of MessageFunction that uses metadata to provide function information. This interface extends MessageFunction and provides implementations for various properties and methods by delegating to the underlying metadata.

Type Parameters

P

the type of the processor

M

the type of the message exchange, contravariant

R

the return type of the function

Inheritors

Properties

Link copied to clipboard
open override val contextName: String

The name of the bounded context, obtained from the metadata.

Link copied to clipboard
open override val functionKind: FunctionKind

The kind of the function (e.g., command, event), obtained from the metadata.

Link copied to clipboard

The metadata containing information about the function, such as supported types, topics, and accessor details.

Link copied to clipboard
open override val name: String

The name of the function, obtained from the metadata.

Link copied to clipboard
open override val processorName: String

The name of the processor, obtained from the metadata.

Link copied to clipboard
open override val supportedTopics: Set<NamedAggregate>

The set of supported topics, obtained from the metadata.

Link copied to clipboard
open override val supportedType: Class<*>

The supported message body type, obtained from the metadata.

Functions

Link copied to clipboard
open override fun <A : Annotation> getAnnotation(annotationClass: Class<A>): A?

Retrieves an annotation from the function's accessor using reflection.