Pluggable

Configs

1

Specify plugins (an array of classes) in config

Properties

3

Class hierarchy

isPluggable: Boolean= truereadonly
Identifies an object as an instance of Pluggable class, or subclass thereof.
isPluggable: Boolean= truereadonlystatic
Identifies an object as an instance of Pluggable class, or subclass thereof.

Misc

plugins: Object<String, InstancePlugin>readonlyAlso a config

Map of applied plugins

Functions

3

Adds plugins to an instance.

ParameterTypeDescription
pluginsfunction()[]

The plugins to add

Get a plugin instance.

ParameterTypeDescription
pluginClassOrNameString | function

Checks if instance has plugin.

ParameterTypeDescription
pluginClassOrNameString | function

Plugin or name to check for

Returns: Boolean