Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SingletonScope

Scope that create only a single instace to handle all dependency resolution requests.

Hierarchy

Index

Properties

Methods

Properties

Static Local

Local: Scope

A reference to the LocalScope. Local Scope return a new instance for each dependency resolution requested. This is the default scope.

Static Singleton

Singleton: Scope

A reference to the SingletonScope. Singleton Scope return the same instance for any dependency resolution requested.

Static Private instances

instances: Map<any>

Methods

reset

  • reset(source: Function): void

resolve

  • resolve(provider: Provider, source: Function): any

Generated using TypeDoc