BasicAutoloader

Undocumented in source.

Constructors

this
this(string[] searchPaths)

Constructs an autoloader with a list of paths to search for classes.

this
this(string basePath, string[] searchPaths)

Constructs an autoloader with a base path to start searches from and a list of child paths to include in the search.

Members

Functions

join
string join(string[] paths)

Takes a number of path segments and constructs a path string.

lookup
const(ClassInfo) lookup(string name)

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

Properties

basePath
string basePath [@property getter]

The base path to start searching from.

searchPaths
string[] searchPaths [@property getter]

The list of paths in which classes a searched for. If a base path is present, this represents a list of child paths.

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