Module aermicioi.aedi.factory.reference

Contains primitives related to reference resolving during construction of component (objects, structs, basic types, etc.).

Functions

NameDescription
alternate(original, alternate) Reference that defaults to alternate component in case that original one is not fetchable from container
anonymous(factory) Represents a reference to component yet to be constructed.
lref(id) Represents a reference that is located in locator.
lref() Reference to a component stored in a locator by it's type.
resolve(reference, locator) Resolve a reference, and attempt to convert to component of type T.
toLref() Convert a type into a locator reference by type's name.

Interfaces

NameDescription
RuntimeReference Represents a reference that some component is dependent on it.

Classes

NameDescription
AlternateReference Reference that defaults to alternate component in case that original one is not fetchable from container
AnonymousFactoryReference Represents a reference to component yet to be constructed.
LocatorReference Represents a reference that is located in locator.
TypeLocatorReference Reference to a component stored in a locator by it's type.

Aliases

NameTypeDescription
name fullyQualifiedName!(typeof(T)) Alias to fullyQualifiedName from std.traits, for shorter notation.
toLrefType LocatorReference Convert a type into a locator reference by type's name.