0.1.2 • Published 2 years ago

@amra-finance/services-core v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@amra-finance/services-core

A dependency injection framework used in ding.js.

TODO

  • create full usage example

Usage (TODO)

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
  }
}