Template FactoryMethodInstanceFactory

Instantiates a component using a method from other component (factory method pattern).

template FactoryMethodInstanceFactory(string method, T, Args...) ;

Encapsulates construction of component using factory method. Arguments that are RuntimeReferences, will be replaced with components extracted from locator, and passed to factory's method. In case when method is not static member, the algorithm will use an instantiaton of factory passed to it, or extracted from locator if a RuntimeReference is passed.

Contained Classes

NameDescription
FactoryMethodInstanceFactory

Parameters

NameDescription
T factory that is used to instantiate component using it's method
method the name of method used to instantiate component
W the factory T, or a RuntimeReference to the factory.
Args type tuple of arguments passed to factory.