Autoloader

Members

Functions

create
T create(string name)

Loads and constructs an Object given by name. Optionally casts the Object to a type given by template parameter.

load
const(ClassInfo) load(string name)

Tries to load a class given by name, searching through the registered paths. This function calls lookup internally, but caches results once found.

lookup
const(ClassInfo) lookup(string name)

Tries to load a class given by name. This function does not cache located classes, hence the lookup is performed for every call.

purgeCache
void purgeCache()

Clears any cached results.

Meta