Search in sources :

Example 1 with MetricProvider

use of act.metric.MetricProvider in project actframework by actframework.

the class App method registerMetricProvider.

private void registerMetricProvider() {
    GenieInjector gi = this.injector();
    MetricProvider mp = new MetricProvider();
    gi.registerNamedProvider(Metric.class, mp);
    gi.registerProvider(Metric.class, mp);
}
Also used : MetricProvider(act.metric.MetricProvider) GenieInjector(act.inject.genie.GenieInjector)

Aggregations

GenieInjector (act.inject.genie.GenieInjector)1 MetricProvider (act.metric.MetricProvider)1