org.qi4j.spi.metrics
Class NullMetricsFactory.NullCounterFactory

java.lang.Object
  extended by org.qi4j.spi.metrics.NullMetricsFactory.NullCounterFactory
All Implemented Interfaces:
MetricsCounterFactory, MetricsFactory
Enclosing class:
NullMetricsFactory

public static class NullMetricsFactory.NullCounterFactory
extends java.lang.Object
implements MetricsCounterFactory


Constructor Summary
NullMetricsFactory.NullCounterFactory()
           
 
Method Summary
 MetricsCounter createCounter(java.lang.Class<?> origin, java.lang.String name)
          Create a MetricsCounter instance.
 java.lang.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(java.lang.Class<?> origin,
                                    java.lang.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.
See Also:
DefaultMetric

registered

public java.lang.Iterable<Metric> registered()
Specified by:
registered in interface MetricsFactory