AnnotationPropertyAccessorParser

Utility object for parsing Wow framework annotations and creating property accessors.

This object provides methods to scan properties and classes for specific Wow annotations and convert them into property getters that can be used for accessing aggregate metadata like IDs, names, versions, and tenant information.

The parser supports both property-level annotations (e.g., @AggregateId on a field) and class-level static annotations (e.g., @StaticAggregateId on a class).

See also

Functions

Link copied to clipboard

Creates a property getter for the static aggregate ID using reified generics.

Link copied to clipboard

Creates a property getter for the aggregate ID if the property is annotated with @AggregateId.

Link copied to clipboard

Creates a property getter for the aggregate name if the property is annotated with @AggregateName.

Link copied to clipboard

Creates a property getter for the aggregate version if the property is annotated with @AggregateVersion.

Link copied to clipboard

Converts a Kotlin property to an integer property getter.

Link copied to clipboard

Creates a property getter for the owner ID if the property is annotated with @OwnerId.

Link copied to clipboard

Creates a property getter for the static aggregate ID if the class is annotated with @StaticAggregateId.

Link copied to clipboard

Creates a property getter for the static tenant ID if the class is annotated with @StaticTenantId.

Link copied to clipboard

Converts a Kotlin property to a string property getter.

Link copied to clipboard

Creates a property getter for the tenant ID if the property is annotated with @TenantId.