Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseEventListener Abstract

Hierarchy

  • BaseEventListener

Index

Constructors

  • Constructs an instance of a base listener.

    access

    public

    Parameters

    • scope: string

      The application scope that includes this listener implementation.

    • eventName: string

      The class name of the event that is being listened to by this listener.

    Returns BaseEventListener

Properties

eventName: string

The class name of the event that is being listened to by this listener, e.g. "OnActivityCreated".

access

protected

var

{string}

logger: LogService

This property permits to log information to the console or in files depending on the configuration. This logger instance can be accessed by extending listeners to use a common log process.

access

protected

var

{LogService}

scope: string

The application scope that includes this listener implementation, e.g. "payout".

access

protected

var

{string}

Methods

  • debugLog(message: string, context?: string): void
  • errorLog(message: string, stack?: string, context?: string): void
  • This method uses the logger to print error messages. Optionally, a stack can be passed to print a stack trace.

    Parameters

    • message: string
    • Optional stack: string
    • Optional context: string

    Returns void

  • This method signatures serves as a base definition for application-level event listeners. All child classes must overload this method with their own implementation.

    access

    public

    abstract

    Parameters

    Returns Promise<void>

Generated using TypeDoc