MessageFunctionAccessor
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.
Parameters
the type of the processor
the type of the message exchange, contravariant
the return type of the function
Inheritors
Properties
The name of the bounded context, obtained from the metadata.
The kind of the function (e.g., command, event), obtained from the metadata.
The metadata containing information about the function, such as supported types, topics, and accessor details.
The name of the processor, obtained from the metadata.
The fully qualified name of the function, formatted as "processorName.functionName(supportedTypeSimpleName)". This provides a unique identifier for the function.
The set of supported topics, obtained from the metadata.
The supported message body type, obtained from the metadata.
Functions
Retrieves an annotation from the function's accessor using reflection.
Gets the context alias prefix for this bounded context.
Checks if a function matches the criteria specified by this NamedFunctionInfo. Used to determine if a wait strategy should be notified about a specific function execution. Returns true if all specified criteria (context, processor, name) match or are not specified.
Checks if the given message is supported by this function. A message is supported if its body is an instance of the supported type and its aggregate matches one of the supported topics.