Struct RegistrationContext

A component registration interface for storage.

struct RegistrationContext(alias ObjectWrappingFactory) ;

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

Constructors

NameDescription
thisConstructor for RegistrationContext

Fields

NameTypeDescription
locatorLocator!(Object,string)Locator used for fetching components dependencies;
storageStorage!(ObjectFactory,string)Storage into which to store components;

Methods

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

Parameters

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