Interface PluginSupportImpl
interface PluginSupportImpl {
destroy(
opts: { eventbus: Eventbus; eventPrepend: string },
): Promise<void>;
setEventbus(
opts: {
newEventbus: Eventbus;
newPrepend: string;
oldEventbus: Eventbus;
oldPrepend: string;
},
): void;
setOptions(options: PluginManagerOptions): void;
}
destroy(
opts: { eventbus: Eventbus; eventPrepend: string },
): Promise<void>;
setEventbus(
opts: {
newEventbus: Eventbus;
newPrepend: string;
oldEventbus: Eventbus;
oldPrepend: string;
},
): void;
setOptions(options: PluginManagerOptions): void;
}
Implemented by
Index
Methods
Methods
destroy
setEventbus
- setEventbus(
opts: {
newEventbus: Eventbus;
newPrepend: string;
oldEventbus: Eventbus;
oldPrepend: string;
},
): void Sets the eventbus associated with this plugin manager. If any previous eventbus was associated all plugin manager events will be removed then added to the new eventbus. If there are any existing plugins being managed their events will be removed from the old eventbus and then 'onPluginLoad' will be called with the new eventbus.
Parameters
Returns void
setOptions
- setOptions(options: PluginManagerOptions): void
Set optional parameters.
Parameters
- options: PluginManagerOptions
Defines optional parameters to set.
Returns void
- options: PluginManagerOptions
Describes the interface that all PluginSupport classes must implement.