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

NameDescription
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

NameDescription
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

NameDescription
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.

ValueRegistrationContext configure (
  Storage!(Object,string) storage
);

Start registering instantiated components into a value container. Description

Parameters

NameDescription
storage value container used to store instantiated components

Returns

ValueRegistrationContext context that provides register api, using storage to store registered components.