A dependency injection framework extracted from dai.js.
- bring ServiceProvider over
- create full usage example
class MyService extends PrivateService {
constructor(name = 'serviceRoleName') {
super(name, dependencyRoleNames);
}
initialize(settings) {
// initialize() for all its dependencies will run first
}
connect() {
// connect() for all its dependencies will run first
}
authenticate() {
// authenticate() for all its dependencies will run first
}
}