You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
464 B
23 lines
464 B
/**
|
|
* @module libflitter/NamedService
|
|
*/
|
|
|
|
const { Service } = require('flitter-di')
|
|
const ImplementationError = require('./errors/ImplementationError')
|
|
|
|
/**
|
|
* A self-named service.
|
|
* @extends module:flitter-di/src/Service~Service
|
|
*/
|
|
class NamedService extends Service {
|
|
/**
|
|
* Get the name of the service.
|
|
* @return {string}
|
|
*/
|
|
static get name() {
|
|
throw new ImplementationError()
|
|
}
|
|
}
|
|
|
|
module.exports = exports = NamedService
|