EventHolderBuilder

Contract every Event — built-in or custom — implements to turn its own EventSchema subtype T into its matching live EventHolder subtype E. Registered against T's class via an EventDefinition, and invoked exclusively through BuilderScope.buildEventHolder (and, transitively, through List<EventSchema>?.buildEventHolders()) — nothing else in the framework constructs an EventHolder directly.

A stateless object is the norm (every built-in event's HolderBuilder is one).

Inheritors

Functions

Link copied to clipboard
abstract fun BuilderScope.build(eventSchema: T): E

Builds a fresh E from eventSchema.