Skip to main content

ResourceRegistrationEvent

This event is emitted when a class with @Resource('my-package') decorator is registered. It emits the name of the class.

@group

Events/Registration

@returns

The Event instance.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • optionalname: string
    • optionalpayload: void

    Returns ResourceRegistrationEvent

Properties

readonlyinheritedheader

header: { timestamp: number }

Type declaration

  • timestamp: number

readonlyinheritedname

name: string

readonlyinheritedpayload

payload: void

Methods

staticregistrar

  • registrar(eventService: EventService, descriptor: PropertyDescriptor): void
  • The registrar() method is explicitly called by the EventSource decorator for a method to enhance that method to auto-emit events.


    Parameters

    • eventService: EventService
    • descriptor: PropertyDescriptor

    Returns void