Search in sources :

Example 1 with CoreMetricsModule

use of com.peterphi.std.guice.common.metrics.CoreMetricsModule in project stdlib by petergeneric.

the class CoreGuiceRole method register.

@Override
public void register(final Stage stage, final ClassScannerFactory scanner, final GuiceConfig config, final GuiceSetup setup, final List<Module> modules, final AtomicReference<Injector> injectorRef, final MetricRegistry metrics) {
    modules.add(new ServicePropertiesModule(config));
    modules.add(new ConfigurationPropertyRegistryModule(config, injectorRef));
    modules.add(new GuiceLifecycleModule());
    modules.add(new CoreMetricsModule(metrics));
    modules.add(new CacheModule(metrics));
    modules.add(new RetryModule(metrics));
    modules.add(new JAXBModule(config));
    modules.add(new Log4JModule(config, metrics));
}
Also used : CoreMetricsModule(com.peterphi.std.guice.common.metrics.CoreMetricsModule) RetryModule(com.peterphi.std.guice.common.retry.module.RetryModule) JAXBModule(com.peterphi.std.guice.common.JAXBModule) ConfigurationPropertyRegistryModule(com.peterphi.std.guice.common.serviceprops.ConfigurationPropertyRegistryModule) GuiceLifecycleModule(com.peterphi.std.guice.common.lifecycle.GuiceLifecycleModule) ServicePropertiesModule(com.peterphi.std.guice.common.serviceprops.ServicePropertiesModule) Log4JModule(com.peterphi.std.guice.common.logging.Log4JModule) CacheModule(com.peterphi.std.guice.common.cached.module.CacheModule)

Aggregations

JAXBModule (com.peterphi.std.guice.common.JAXBModule)1 CacheModule (com.peterphi.std.guice.common.cached.module.CacheModule)1 GuiceLifecycleModule (com.peterphi.std.guice.common.lifecycle.GuiceLifecycleModule)1 Log4JModule (com.peterphi.std.guice.common.logging.Log4JModule)1 CoreMetricsModule (com.peterphi.std.guice.common.metrics.CoreMetricsModule)1 RetryModule (com.peterphi.std.guice.common.retry.module.RetryModule)1 ConfigurationPropertyRegistryModule (com.peterphi.std.guice.common.serviceprops.ConfigurationPropertyRegistryModule)1 ServicePropertiesModule (com.peterphi.std.guice.common.serviceprops.ServicePropertiesModule)1