SwitchableContainer

Templated switchable decorated.

Templated switchable decorated. This decorated will decorate another decorated, and add switching logic to it. Depending in which state (on/off) the switching decorated is. It will instantiate if the decorated is on, and not if decorated is in off mode. 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. Locator!()
  2. MutableDecorator!T
  3. Switchable

Members

Aliases

InheritanceSet
alias InheritanceSet = NoDuplicates!(Filter!(templateOr!(partialSuffixed!(isDerived, Storage!(ObjectFactory, string)), partialSuffixed!(isDerived, AliasAware!string), partialSuffixed!(isDerived, FactoryLocator!ObjectFactory), partialSuffixed!(isDerived, Container)), InterfacesTuple!T), Locator!(), Decorator!T, Switchable)

Set which the switchable decorated will decorate for T. By default Locator!() and Switchable is included.

Classes

SwitchableContainer
class SwitchableContainer

Templated switchable decorated.

Parameters

T

The decorated that switchable decorated will decorate.

Meta