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.
|
export class PluginRegistry { |
|
static plugins = {} |
|
|
|
static register(type, plugin) { |
|
this.plugins[type] = plugin; |
|
} |
|
|
|
static get(type) { |
|
return this.plugins[type]; |
|
} |
|
|
|
static getAll() { |
|
return Object.keys(this.plugins) |
|
} |
|
}
|
|
|