Class SubscribableContainer

Decorating container that adds a set of events at different actions during lifetime of a container to which subscribers can subscribe to. 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 SubscribableContainer(T) ;

Constructors

NameDescription
this Default constructor for SubscribableContainer

Methods

NameDescription
instantiate Sets up the internal state of container.
subscribe Subscriber a delegate to a particular event emmited by object
terminate Destruct all managed components.

Parameters

NameDescription
T The decorated that switchable decorated will decorate.