EventHolderBuilderManager

Resolves an EventSchema's concrete class to its registered EventHolderBuilder and actually builds it — the single entry point every EventHolder, built-in or custom, is constructed through, reached via BuilderScope.buildEventHolder.

One instance is built app-wide (by MosaicModules), from the merge of every built-in EventDefinition and whatever custom ones were passed via MosaicDependencyInjectionConfig.eventDefinitions.

Parameters

builders

every registered EventHolderBuilder, keyed by the EventSchema subclass it builds.

Constructors

Link copied to clipboard
constructor(builders: Map<KClass<out EventSchema>, EventHolderBuilder<*, *>>)

Functions

Link copied to clipboard

Builds a holder for eventSchema by looking up the builder registered for its concrete class.