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) ;

Constructors

NameDescription
this

Fields

NameTypeDescription
candidates ObjectStorage!(RedBlackTree!string,string)

Methods

NameDescription
get Get an object that is associated with identity.
getFactories Get all factories available in decorated.
getFactory Get factory for constructed component identified by identity.
has Check if an object is present in TypeBasedContainer by identity.
link Alias a key to an alias_.
remove Remove an object from TypeBasedContainer with identity.
resolve Resolve an alias to original identity, if possible.
set Save an object factory in TypeBasedContainer by identity.
unlink Removes alias.

Parameters

NameDescription
T The decorated that switchable decorated will decorate.