Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for a service that can be registered with the application that is started and stopped during the application lifecycle.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

status

status: UnitStatus = ...

The current status of the unit.

Accessors

Private appClassApplication

Methods

Protected app

Protected container

down

  • down(): void | Promise<void>
  • This method is called to stop the unit when the application is shutting down. Here, you should do any teardown required to stop the package cleanly.

    IN PARTICULAR take care to free blocking resources that could prevent the process from exiting without a kill.

    Returns void | Promise<void>

getBoundMethod

  • getBoundMethod(methodName: string): (...args: any[]) => any
  • Get the method with the given name from this class, bound to this class.

    Parameters

    • methodName: string

    Returns (...args: any[]) => any

    function

      • (...args: any[]): any
      • Parameters

        • Rest ...args: any[]

        Returns any

Protected make

  • make<T>(target: any, ...parameters: any[]): T

up

  • up(): void | Promise<void>
  • This method is called to start the unit when the application is booting. Here, you should do any setup required to get the package up and running.

    Returns void | Promise<void>

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.