Component

Component that supports configurable dependencies, logging and performance counters.

Implements: IConfigurable, IReferenceable

Description

The component class allows you to create components that support 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
  • … References must match configured dependencies.

Fields

logger

Components to pass log messages

logger: CompositeLogger

_counters

Components to pass collected measurements

_counters: CompositeCounters

dependencyResolver

Dependency resolver

dependencyResolver: DependencyResolver

Instance methods

configure

Configures a component by passing its configuration parameters.

@override

void configure(ConfigParams config)

  • config: ConfigParams - configuration parameters to be set.

setReferences

Sets references to dependent components.

@override

void setReferences(IReferences references)

  • references: IReferences - references to locate the component’s dependencies.