Class TypeBasedContainer

A decorating container that can provide for requested base class or interface, one implementor of those. This decorated will inherit following interfaces if and only if T also implements them:

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

class TypeBasedContainer(T) ;

Methods

NameDescription
getGet an object that is associated with identity.
hasCheck if an object is present in TypeBasedContainer by identity.
instantiateSets up the internal state of container.
removeRemove an object from TypeBasedContainer with identity.
setSave an object factory in TypeBasedContainer by identity.

Parameters

NameDescription
T The decorated that switchable decorated will decorate.