ProcessorMetadataParser

open class ProcessorMetadataParser<E : MessageExchange<*, *>>(functionCondition: (KFunction<*>) -> Boolean = { true }) : CacheableMetadataParser

Parser for extracting processor metadata from classes.

This parser visits class functions and creates metadata describing message processors and their handler functions.

Parameters

E

The message exchange type

See also

Inheritors

Constructors

Link copied to clipboard
constructor(functionCondition: (KFunction<*>) -> Boolean = { true })

Functions

Link copied to clipboard
fun <TYPE : Any, M : Metadata> parse(type: Class<TYPE>): M

Parses metadata for the given class type, utilizing caching to avoid redundant parsing operations. If metadata for the class has already been parsed and cached, returns the cached instance. Otherwise, parses the metadata using parseToMetadata and stores it in the cache.

Link copied to clipboard
open override fun <TYPE : Any, M : Metadata> parseToMetadata(type: Class<TYPE>): M

Parses a processor class to extract its metadata.