configure - multiple declarations
Function configure
Start registering components using a storage and a locator.
RegistrationContext!ObjectWrappingFactory configure(alias ObjectWrappingFactory)
(
Storage!(ObjectFactory,string) storage,
Locator!(Object,string) locator
);
RegistrationContext!ObjectWrappingFactory configure(alias ObjectWrappingFactory)
(
Locator!(Object,string) locator,
Storage!(ObjectFactory,string) storage
);
Start registering components using a storage and a locator.
Parameters
Name | Description |
---|---|
storage | store registered components into it. |
locator | locator of dependencies for registered components |
Returns
RegistrationContext context with registration interface used to register components.
Function configure
Start registering components using a container.
RegistrationContext!ObjectWrappingFactory configure(T, alias ObjectWrappingFactory)
(
T container
)
if (is(T : Storage!(ObjectFactory, string)) && is(T : Locator!(Object, string)));
Start registering components using a container.
Parameters
Name | Description |
---|---|
container | storage and locator of components. |
Returns
RegistrationContext context with registration interface used to register components.
Function configure
Start registering components using a storage and a locator.
RegistrationContext!ObjectWrappingFactory configure(alias ObjectWrappingFactory)
(
Locator!(Object,string) locator,
string storage
);
Start registering components using a storage and a locator.
Parameters
Name | Description |
---|---|
storage | identity of a storage located in locator used by registration context to store components. |
locator | locator of dependencies for registered components |
Returns
RegistrationContext context with registration interface used to register components.
Function configure
Start registering instantiated components into a value container.
Start registering instantiated components into a value container. Description
Parameters
Name | Description |
---|---|
storage | value container used to store instantiated components |
Returns
ValueRegistrationContext context that provides register api, using storage to store registered components.