SimpleMessageFunctionAccessor

data class SimpleMessageFunctionAccessor<P : Any, in M : MessageExchange<*, *>, out R>(val processor: P, val metadata: FunctionAccessorMetadata<P, R>) : MessageFunctionAccessor<P, M, R>

A simple message function accessor for functions without injectable parameters.

This accessor handles functions that only need the primary message parameter and don't require dependency injection for additional parameters.

Type Parameters

P

The processor type

M

The message exchange type

R

The return type

Constructors

Link copied to clipboard
constructor(processor: P, metadata: FunctionAccessorMetadata<P, R>)

Properties

Link copied to clipboard
open override val metadata: FunctionAccessorMetadata<P, R>

The function metadata

Link copied to clipboard
open override val processor: P

The processor instance

Functions

Link copied to clipboard
open operator override fun invoke(exchange: M): R

Invokes the function with the message exchange.

Link copied to clipboard
open override fun toString(): String