Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Component

Abstract component that supportes configurable dependencies, logging and performance counters.

Configuration parameters

  • dependencies:
    • [dependency name 1]: Dependency 1 locator (descriptor)
    • ...
    • [dependency name N]: Dependency N locator (descriptor)

References

  • *:counters:*:*:1.0 (optional) ICounters components to pass collected measurements
  • *:logger:*:*:1.0 (optional) ILogger components to pass log messages
  • *:tracer:*:*:1.0 (optional) ITracer components to record traces
  • ... References must match configured dependencies.

Hierarchy

  • Component

Implements

  • any
  • any

Index

Properties

Protected _counters

_counters: CompositeCounters = new CompositeCounters()

Protected _dependencyResolver

_dependencyResolver: DependencyResolver = new DependencyResolver()

Protected _logger

_logger: CompositeLogger = new CompositeLogger()

Protected _tracer

_tracer: CompositeTracer = new CompositeTracer()

Methods

configure

  • configure(config: ConfigParams): void
  • Configures component by passing configuration parameters.

    Parameters

    • config: ConfigParams

      configuration parameters to be set.

    Returns void

setReferences

  • setReferences(references: IReferences): void
  • Sets references to dependent components.

    Parameters

    • references: IReferences

      references to locate the component dependencies.

    Returns void

Generated using TypeDoc