Class GcRegisteringContainer

Decorating container that will decorate all passed factories with gc registering factory. This decorated will inherit following interfaces only and only if the T also implements them:

  1. Storage!(ObjectFactory, string)
  2. Container
  3. AliasAware!string
Decorated container must implement following interfaces:
  1. Container
  2. MutableDecorator!T
  3. Subscribable!ContainerInstantiationEventType
  4. Decorator!Container

class GcRegisteringContainer(T) ;

Constructors

NameDescription
this Default constructor for GcRegisteringContainer

Fields

NameTypeDescription
decorated_ T

Methods

NameDescription
remove Remove an object factory from container.
set Set object factory

Parameters

NameDescription
T The decorated that switchable decorated will decorate.