autoloader 0.1.0
An automatic class-loader for D.
To use this package, run the following command in your project's root directory:
						Manual usage
						
						Put the following dependency into your project's dependences section:
					
autoloader
An automatic class-loader for D.
Hello World
Create a class that you want to load,
module app.hello_world;
class HelloWorld
{
    // Your class
}
Create an autoloader and load the class,
import autoloader;
void main()
{
    // Tell our autoloader to search in 'app'
    auto loader = new BasicAutoloader(["app"]);
    
    // Load and construct HelloWorld
    Object o = loader.create("HelloWorld");
}
Conventions
The autoloader is designed around convention over configuration, so it assumes that a class is located in a module under the same name but in lowersnakecase. For example,
| Class | Relative Search Path | 
|---|---|
| Foo | foo.Foo                   | 
| BAR | bar.BAR                   | 
| URLParser | url_parser.URLParser      | 
| HttpService | http_service.HttpService  | 
Overriding the lookup(name) function allows classes to change this behaviour.
License
MIT
- 0.1.0 released 9 years ago
 - mintyfresh/autoloader
 - MIT
 - Copyright © 2016, Mihail K
 
- Authors:
 - Dependencies:
 - none
 - Versions:
 - 
						
Show all 2 versions0.1.0 2016-Jan-25 ~master 2016-Jan-25  - Download Stats:
 - 
						
- 
								
0 downloads today
 - 
								
0 downloads this week
 - 
								
3 downloads this month
 - 
								
66 downloads total
 
 - 
								
 - Score:
 - 0.5
 - Short URL:
 - autoloader.dub.pm