EventMetadataParser

Parser for extracting metadata from domain event classes.

This object parses domain event classes to extract metadata such as event names, revisions, and aggregate information from annotations and class structure. It implements CacheableMetadataParser for performance optimization.

See also

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 class to extract event metadata.