mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-24 05:59:11 +00:00
25 lines
462 B
Java
25 lines
462 B
Java
package com.commafeed;
|
|
|
|
import com.codahale.metrics.MetricRegistry;
|
|
|
|
import jakarta.enterprise.inject.Produces;
|
|
import jakarta.inject.Singleton;
|
|
|
|
import java.time.InstantSource;
|
|
|
|
@Singleton
|
|
public class CommaFeedProducers {
|
|
|
|
@Produces
|
|
@Singleton
|
|
public InstantSource instantSource() {
|
|
return InstantSource.system();
|
|
}
|
|
|
|
@Produces
|
|
@Singleton
|
|
public MetricRegistry metricRegistry() {
|
|
return new MetricRegistry();
|
|
}
|
|
}
|