Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RolesService

Roles allow runtime configuration of which outward facing services to start. For instance WebServerModule and TasksModule both register their respective roles, so that they can be easily turned on and off when the application is called.

Hierarchy

  • RolesService

Index

Constructors

constructor

Properties

_activeRoles

_activeRoles: any[] = null

_roles

_roles: RoleState[] = []

silent

silent: boolean = false

Accessors

activeRoles

configuration

effectiveRoles

roles

Methods

configure

getRoleForModule

  • getRoleForModule(roleModuleClass: any): RoleState

registerRole

restartAll

  • restartAll(): Promise<void>

start

  • start(roleModuleClass: any): Promise<void>

startAll

  • startAll(): Promise<void>

stop

  • stop(roleModuleClass: any): Promise<void>

stopAll

  • stopAll(): Promise<void>

Object literals

_configuration

_configuration: object

mode

mode: "all-except" = "all-except"

roles

roles: undefined[] = []

Generated using TypeDoc