org.qi4j.spi.metrics

## Class NullMetricsFactory.NullCounterFactory

- java.lang.Object
- - org.qi4j.spi.metrics.NullMetricsFactory.NullCounterFactory

- All Implemented Interfaces:
    MetricsCounterFactory, MetricsFactory
  Enclosing class:
    NullMetricsFactory

      public static class NullMetricsFactory.NullCounterFactory
      extends Object
      implements MetricsCounterFactory

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NullMetricsFactory.NullCounterFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `MetricsCounter` | `createCounter(Class<?> origin, String name)` Create a MetricsCounter instance.
    `Iterable<Metric>` | `registered()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NullMetricsFactory.NullCounterFactory

          public NullMetricsFactory.NullCounterFactory()

  - ### Method Detail

    - #### createCounter

          public MetricsCounter createCounter(Class<?> origin,
                                     String name)

      Description copied from interface: `MetricsCounterFactory`
      Create a MetricsCounter instance. If the same arguments are given twice, the same instance must be returned.
      Specified by:
        `createCounter` in interface `MetricsCounterFactory`
      Parameters:
        `origin` - The class that instantiate the metric
        `name` - A human readable, short name of the metric.
      Returns:
        A Metric instance to be used, OR org.qi4j.spi.metrics.DefaultMetric.NULL if not supported.

    - #### registered

          public Iterable<Metric> registered()

      Specified by:
        `registered` in interface `MetricsFactory`