Skip to main content

PluginCommonModule

PluginCommonModule

This module provides the common services, configuration, and event bus capabilities required by a typical plugin. It should be imported into plugins to avoid having to repeat the same boilerplate for each individual plugin.

The PluginCommonModule exports:

  • EventBusModule, allowing the injection of the EventBus service.
  • ServiceModule allowing the injection of any of the various entity services such as ProductService, OrderService etc.
  • ConfigModule, allowing the injection of the ConfigService.
  • JobQueueModule, allowing the injection of the JobQueueService.
  • HealthCheckModule, allowing the injection of the HealthCheckRegistryService.
Signature
class PluginCommonModule {

}