Class MetricsServiceFactory


  • public class MetricsServiceFactory
    extends java.lang.Object
    Utility that provides a MetricsService to any class that has been loaded from an OSGi bundle. This is meant to make it as easy to access the MetricsService as it is to get a Logger, for example.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static MetricsService getMetricsService​(java.lang.Class<?> c)
      Provide a MetricsService mapped to the Bundle that loaded class c
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetricsServiceFactory

        public MetricsServiceFactory()
    • Method Detail

      • getMetricsService

        public static MetricsService getMetricsService​(java.lang.Class<?> c)
        Provide a MetricsService mapped to the Bundle that loaded class c
        Parameters:
        c - a Class loaded by an OSGi bundle
        Returns:
        a MetricsService