0.0.2 • Published 12 years ago

dependency-manager v0.0.2

Weekly downloads
10
License
-
Repository
github
Last release
12 years ago

#Simple dependency manager Creates instances of objects initialised with a graph of dependencies.

var di = new DependencyManager();
di.register(Apple); // has no dependencies
di.register(Peeler, {
    'peelable': 'Apple' // property peelable initialised with Apple
});
di.register(Juicer, {
    'peeler': 'Peeler', // property peeler initialised with Peeler
    'peelable': 'Apple' // property peelable initialised with Apple
});

var jucer = di.create('Juicer');