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.

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<*>>

Set of command classes that this function should not execute for.

Link copied to clipboard

The underlying function accessor metadata.

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

Set of command classes that this function should execute for (empty means all).

Link copied to clipboard
open override val order: Order

The ordering information for this function.

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.