Resolver

Interface for object that can resolve instances of a type, possibly with a name.

Members

Functions

canResolve
bool canResolve(TypeInfo type)
bool canResolve(TypeInfo type, string name)

Check if the resolver can resolve a type (possibly with a name).

resolve
T resolve()
T resolve(string name)

Resolve an instance of type T. If name is provided use that to disambiguate between multiple providers.

withResolvedPtr
void withResolvedPtr(TypeInfo info, void delegate(void*) dg)
void withResolvedPtr(TypeInfo info, string name, void delegate(void*) dg)

Resolve an instance of the type of TypeInfo, and execute a delegate with a pointer to that instance (as a void*).

Meta