AfterCommandFunctionMetadata

data class AfterCommandFunctionMetadata<C : Any>(val function: FunctionAccessorMetadata<C, Mono<*>>) : Ordered

Metadata for an after-command function, containing configuration about which commands it applies to.

This data class holds information about an after-command function's include/exclude rules and ordering, parsed from the AfterCommand annotation on the function.

Type Parameters

C

The type of the command aggregate.

Constructors

Link copied to clipboard
constructor(function: FunctionAccessorMetadata<C, Mono<*>>)

Creates metadata by parsing annotations from the function.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val exclude: Set<Class<*>>
Link copied to clipboard

The underlying function accessor metadata. include is the set of command classes this function executes for (empty means all), exclude is the set it does not execute for, and order controls execution ordering.

Link copied to clipboard
val include: Set<Class<*>>
Link copied to clipboard
open override val order: Order

Functions

Link copied to clipboard
fun supportCommand(commandType: Class<*>): Boolean

Determines whether this after-command function should execute for the given command type.

Link copied to clipboard

Converts after-command function metadata into an executable after-command function.