@arcmantle/adapter-element
    Preparing search index...

    Class RegisterSpecifierWithLifetime<T>

    Combined fluent API class that provides both specifier and lifetime functionality. Used for class and factory bindings that support all configuration options.

    Type Parameters

    • T

      The type of the bound value

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    binding: Binding

    Methods

    • Registers the binding with a name, allowing for additional granularity when resolving.

      Parameters

      • name: string

      Returns RegisterLifetimeWithActivator<T>

    • Registers an activator function that will be called when the binding is resolved.
      This allows for additional processing or modification of the instance before it is returned.

      Parameters

      Returns RegisterLifetime

    • Registers the binding with a singleton lifetime.
      Meaning the same instance will be returned every time it is resolved from this container.
      If this is bound as a bindOnce, it will be the same instance potentially across multiple containers.

      Returns void

    • Registers the binding with a name and tag, allowing for additional granularity when resolving.

      Parameters

      • name: string
      • tag: string

      Returns RegisterLifetimeWithActivator<T>

    • Registers the binding with a transient lifetime.
      Meaning a new instance will be returned every time it is resolved from this container.

      Returns void