Interface MetricAnnotationDiscoveryObserver


public interface MetricAnnotationDiscoveryObserver
Observer of the discovery of metric annotations which are applied to constructors and methods.

Implementations make themselves known via the Java service loader mechanism.

Observers are notified during ProcessAnnotatedType, for each metric annotation that is discovered to apply to an executable, via a MetricAnnotationDiscovery event.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDiscovery(MetricAnnotationDiscovery metricAnnotationDiscovery)
    Notifies the observer that a metric annotation has been discovered to apply to a constructor or method.
  • Method Details

    • onDiscovery

      void onDiscovery(MetricAnnotationDiscovery metricAnnotationDiscovery)
      Notifies the observer that a metric annotation has been discovered to apply to a constructor or method.
      Parameters:
      metricAnnotationDiscovery - the discovery event