Functions - reflect

getResourceAnnotations

Function to retrieve the resource's annotation.

getServiceAnnotations

Function to retrieve the service's annotation.

getResourceAnnotations

(service serviceType, string resourceName, string annotName, string moduleName)

returns any

Function to retrieve the resource's annotation.

Parameters

  • serviceType service
  • The service that the resource belongs to

  • resourceName string
  • Name of the resource

  • annotName string
  • Name of the annotation

  • moduleName string (default ())
  • Name of the module

  • Return Type

    (any)
  • Returns the resource annotation data

getServiceAnnotations

(service serviceType, string annotName, string moduleName)

returns any

Function to retrieve the service's annotation.

Parameters

  • serviceType service
  • The service that the annotation belongs to

  • annotName string
  • Name of the annotation

  • moduleName string (default ())
  • Name of the module

  • Return Type

    (any)
  • Returns the service annotation data