Class RegistryFactory

java.lang.Object
io.helidon.metrics.RegistryFactory
All Implemented Interfaces:
RegistryFactory

public class RegistryFactory extends Object implements RegistryFactory
Access point to all registries. There are two options to use the factory:
  1. A singleton instance, obtained through getInstance() or getInstance(io.helidon.config.Config). This instance is lazily initialized - the latest call that provides a config instance before a MetricRegistry.Type.BASE registry is obtained would be used to configure the base registry (as that is the only configurable registry in current implementation)
  2. A custom instance, obtained through create(Config) or create(). This would create a new instance of a registry factory (in case multiple instances are desired), independent on the singleton instance and on other instances provided by these methods.