Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Workspace

Workspace is the core service of Capsula Hub, it is responsible for :

  • Allowing services to register themselves (REGISTER)
  • Letting services and components communicate together (SERVICES/COMPONENTS)
  • Getting their own configuration (CONFIG) Workspace need to be instantiated with a configuration service

Hierarchy

  • Workspace

Index

Methods

components

registerService

  • Register a service in the workspace. Reject in case :

    • Invalid request
    • Service specified in request doesn't exist in workspace configuration
    • Service specified in request already registered

    Parameters

    Returns Promise<void>

services

  • Getting a map of promises to each service that has been loaded in the workspace Reject in case :

    • Invalid request

    Parameters

    Returns Promise<ServicesMap>