Bootstrap context setup.

It is passed to setup method to set up the bootstrap. E.g. by providing bootstrap context values.

Hierarchy

Properties

feature: Class<any>

Feature class performing bootstrap setup.

onComponent: OnEvent<[ComponentContext<any>]>

An OnEvent sender of component construction events.

The registered receiver will be notified right before component is constructed.

onDefinition: OnEvent<[DefinitionContext<any>]>

An OnEvent sender of component definition events.

The registered receiver will be notified when new component class is defined, but before its custom element class constructed.

whenReady: OnEvent<[FeatureContext]>

An OnEvent sender of feature readiness event.

The registered receiver will be notified once bootstrap is complete and the feature is loaded.

If the above conditions satisfied already, the receiver will be notified immediately.

Methods

  • Provides asset for entry available in each component context.

    Returns

    Asset supply. Revokes provided asset once cut off.

    Type Parameters

    • TValue

      Context value type.

    • TAsset = TValue

      Context value asset type.

    Parameters

    Returns Supply

  • Provides asset for entry available in each component definition context.

    Returns

    Asset supply. Revokes provided asset once cut off.

    Type Parameters

    • TValue

      Context value type.

    • TAsset = TValue

      Context value asset type.

    Parameters

    Returns Supply

  • Provides asset for bootstrap context entry before context creation.

    Returns

    Asset supply. Revokes provided asset once cut off.

    Type Parameters

    • TValue

      Context value type.

    • TAsset = TValue

      Context value asset type.

    Parameters

    Returns Supply

  • Sets up the definition of component of the given type.

    Whenever the definition of component of the given type or any of its subtype starts, the returned OnEvent sender sends a DefinitionSetup instance, that can be used to set up that definition.

    Returns

    An OnEvent sender of component definition setup instances.

    Type Parameters

    • T extends object

    Parameters

    Returns OnEvent<[DefinitionSetup<any>]>

Generated using TypeDoc