RegistrationContext

A component registration interface for storage.

Registration context registers components into storage, and uses a locator as a source of dependencies for components.

Constructors

this
this(Storage!(ObjectFactory, string) storage, Locator!(Object, string) locator)

Constructor for RegistrationContext

Members

Functions

register
ConfigurationContextFactory!T register(string identity)
ConfigurationContextFactory!T register()

Register a component of type T by identity, type, or interface it implements.

register
ConfigurationContextFactory!T register(T value, string identity)
ConfigurationContextFactory!T register(T value)

Register a component of type T by identity, type, or interface it implements with a default value.

Variables

locator
Locator!(Object, string) locator;

Locator used for fetching components dependencies;

storage
Storage!(ObjectFactory, string) storage;

Storage into which to store components;

Parameters

ObjectWrappingFactory

factory used to wrap components that are not derived from Object.

Meta