Used to register a plugin.
The plugin definition to register
The registered plugin factory with plugin type metadata attached
definePlugin
Used to register a plugin.