CommandRouteMetadataParser

Parses the provided type into a Metadata object specifically for command routes.

This object extends CacheableMetadataParser and thus benefits from caching mechanisms, which can improve performance when parsing the same type multiple times.

Return

A Metadata object representing the command route information of the provided type.

Example usage:

val myCommandType = MyCommand::class.java
val metadata: Metadata = CommandRouteMetadataParser.parse(myCommandType)
println(metadata) // Outputs the metadata, assuming it has a toString implementation

Parameters

type

The class type to be parsed into metadata.

Functions

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