Component

Component that supports configurable dependencies, logging and performance counters.

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
  • *:tracer:*:*:1.0 - (optional) ITracer components to trace executed operations
  • … References must match configured dependencies.

Fields

Logger

Components to pass log messages

Logger: CompositeLogger

Counters

Components to pass collected measurements

Counters: CompositeCounters

DependencyResolver

A dependency resolver

DependencyResolver: DependencyResolver

Instance methods

Configure

Configures component by passing configuration parameters.

(c *Component) Configure(config *config.ConfigParams)

SetReferences

Sets references to dependent components.

(c *Component) SetReferences(references refer.IReferences)