TypeTransformer.transform

Transform type T into a GenericFactory!T

struct TypeTransformer(FactoryPolicy, ConfigurerPolicy)
static
transform
(
T
)
if (
is(T)
)
if (
isFactoryPolicy!FactoryPolicy &&
isConfiguratorPolicy!ConfigurerPolicy
)

Parameters

T

type which is transformed into it's factory

locator Locator!()

locator for T's dependencies

Return Value

Type: auto

instance of GenericFactory!T, or null if T is not transformable into a factory

Meta