2024-08-07 08:10:14 +02:00
|
|
|
package com.commafeed;
|
|
|
|
|
|
2025-01-27 07:35:57 +01:00
|
|
|
import java.time.InstantSource;
|
|
|
|
|
|
2024-08-07 08:10:14 +02:00
|
|
|
import com.codahale.metrics.MetricRegistry;
|
|
|
|
|
|
|
|
|
|
import jakarta.enterprise.inject.Produces;
|
|
|
|
|
import jakarta.inject.Singleton;
|
|
|
|
|
|
|
|
|
|
@Singleton
|
|
|
|
|
public class CommaFeedProducers {
|
|
|
|
|
|
2025-01-27 07:35:57 +01:00
|
|
|
@Produces
|
|
|
|
|
@Singleton
|
|
|
|
|
public InstantSource instantSource() {
|
|
|
|
|
return InstantSource.system();
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-07 08:10:14 +02:00
|
|
|
@Produces
|
|
|
|
|
@Singleton
|
|
|
|
|
public MetricRegistry metricRegistry() {
|
|
|
|
|
return new MetricRegistry();
|
|
|
|
|
}
|
2025-01-27 07:35:57 +01:00
|
|
|
|
2024-08-07 08:10:14 +02:00
|
|
|
}
|