parent

Instantiates a component using as basis some third party factory.

Instantiates a component using as basis some third party factory. When a parent factory from a source of factories is used, type checking of component returned by parent factory is done at runtime, and will throw an exception if type of parent factory mismatches the type of component that uses respective factory.

  1. auto parent(Z factory, X delegated)
  2. auto parent(Z factory, X source, string identity)
    parent
    (
    Z : InstanceFactoryAware!T
    T
    X : FactoryLocator!ObjectFactory
    )
    (,,
    string identity
    )

Parameters

T

the type of component that is to be configured

factory Z

factory that uses the parent factory for component instantiation

source X

source of factories from which parent factory is extracted

identity string

identity of factory used by factory to instantiate component

Meta