PrepareKeyMetadataParser

Parser for extracting PrepareKey metadata from annotated interface classes. This parser analyzes PrepareKey interfaces annotated with @PreparableKey to extract the necessary metadata for proxy creation, including name, interface type, and value type.

The parser caches parsed metadata for performance and supports both direct parsing and extension functions for convenient access.

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 the PrepareKey metadata from the given class. Uses reflection to analyze the class hierarchy and annotations to extract the metadata required for proxy creation.