MultiAutoloader

Constructors

this
this(Autoloader[] autoloaders)

Constructs an autoloader that defers lookup to the given autoloaders.

Members

Functions

lookup
const(ClassInfo) lookup(string name)

Tries to load a class given by name, deferring to the wrapped autoloaders in the order that they were given in during construction.

Properties

autoloaders
Autoloader[] autoloaders [@property getter]

The list of autoloaders that are wrapped by this multiloader.

Inherited Members

From Autoloader

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