along - multiple declarations

Function along

Use locator or storage as basis for registering components.

Context along(Context, alias T) (
  Context registrationContext,
  Storage!(ObjectFactory,string) storage
);

Context along(Context, alias T) (
  Context registrationContext,
  Locator!(Object,string) locator
);

Use locator or storage as basis for registering components.

Parameters

NameDescription
registrationContext context for which to set new configured storage, or used locator
storage store registered components into it.
locator locator of dependencies for registered components

Returns

RegistrationContext context with registration interface used to register components.

Function along

Use storage as basis for registering components.

Context along(Context, alias T) (
  Context registrationContext,
  string storage
);

Use storage as basis for registering components.

Parameters

NameDescription
registrationContext context for which to set new configured storage, or used locator
storage identity of a storage located in locator that should be used by registrationContext to store components.

Returns

RegistrationContext context with registration interface used to register components.

Function along

Use allocator as default version for registered components.

Context along(Context, alias T) (
  Context registrationContext,
  IAllocator allocator
);

Use allocator as default version for registered components.

Parameters

NameDescription
registrationContext configuration context for registered components.
allocator allocator used as default allocation strategy for components.

Returns

registrationContext