SimpleCommandBuilderRewriterRegistry

Simple implementation of CommandBuilderRewriterRegistry.

This implementation uses a concurrent hash map to store rewriters and automatically wraps blocking rewriters with BlockingCommandBuilderRewriter.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun getRewriter(commandType: Class<*>): CommandBuilderRewriter?

Gets the registered rewriter for the specified command type.

Link copied to clipboard
open override fun register(rewriter: CommandBuilderRewriter)

Registers a command builder rewriter, automatically wrapping blocking rewriters.

Link copied to clipboard
open override fun unregister(commandType: Class<*>)

Unregisters the rewriter for the specified command type.