Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContainerBlueprint

Blueprint for newly-created containers.

This is used to allow global helpers like @Singleton() or @CLIDirective() while still supporting multiple global Container instances at once.

Hierarchy

  • ContainerBlueprint

Index

Constructors

constructor

Properties

Protected constructableFactories

constructableFactories: any[] = []

Protected factories

factories: (() => AbstractFactory<any>)[] = []

Protected resolutionCallbacks

resolutionCallbacks: { callback: ContainerResolutionCallback<any>; key: any }[] = []

Static Private Optional instance

Methods

onResolve

register

registerFactory

registerNamed

  • Register a basic instantiable class as a standard Factory with this container, identified by a string name rather than static class.

    Parameters

    • name: string

      unique name to identify the factory in the container

    • dependency: Instantiable<any>

    Returns ContainerBlueprint

registerProducer

resolve

resolveConstructable

  • resolveConstructable(): any

resolveResolutionCallbacks

Static getContainerBlueprint

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.