diff --git a/app/src/main/java/gov/hhs/cdc/trustedintermediary/external/javalin/App.java b/app/src/main/java/gov/hhs/cdc/trustedintermediary/external/javalin/App.java index 6ebc81b77..22be3e584 100644 --- a/app/src/main/java/gov/hhs/cdc/trustedintermediary/external/javalin/App.java +++ b/app/src/main/java/gov/hhs/cdc/trustedintermediary/external/javalin/App.java @@ -10,7 +10,7 @@ import gov.hhs.cdc.trustedintermediary.external.azure.AzureSecrets; import gov.hhs.cdc.trustedintermediary.external.hapi.HapiFhirImplementation; import gov.hhs.cdc.trustedintermediary.external.inmemory.KeyCache; -import gov.hhs.cdc.trustedintermediary.external.inmemory.PrivateMetricMetaData; +import gov.hhs.cdc.trustedintermediary.external.inmemory.LoggingMetricMetaData; import gov.hhs.cdc.trustedintermediary.external.jackson.Jackson; import gov.hhs.cdc.trustedintermediary.external.jjwt.JjwtEngine; import gov.hhs.cdc.trustedintermediary.external.localfile.LocalSecrets; @@ -86,6 +86,6 @@ private static void registerClasses() { : AzureSecrets.getInstance()); ApplicationContext.register( OrganizationsSettings.class, OrganizationsSettings.getInstance()); - ApplicationContext.register(MetricMetaData.class, PrivateMetricMetaData.getInstance()); + ApplicationContext.register(MetricMetaData.class, LoggingMetricMetaData.getInstance()); } } diff --git a/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/inmemory/PrivateMetricMetaData.java b/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/inmemory/LoggingMetricMetaData.java similarity index 84% rename from shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/inmemory/PrivateMetricMetaData.java rename to shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/inmemory/LoggingMetricMetaData.java index 630a731c0..d1c18873d 100644 --- a/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/inmemory/PrivateMetricMetaData.java +++ b/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/inmemory/LoggingMetricMetaData.java @@ -12,16 +12,16 @@ * Implementation of a class that can be used throughout the project to collect a list of metadata * events */ -public class PrivateMetricMetaData implements MetricMetaData { - private static final PrivateMetricMetaData INSTANCE = new PrivateMetricMetaData(); +public class LoggingMetricMetaData implements MetricMetaData { + private static final LoggingMetricMetaData INSTANCE = new LoggingMetricMetaData(); - public static PrivateMetricMetaData getInstance() { + public static LoggingMetricMetaData getInstance() { return INSTANCE; } @Inject Logger logger; - private PrivateMetricMetaData() {} + private LoggingMetricMetaData() {} private static final Map metadataMap = new ConcurrentHashMap<>(); diff --git a/shared/src/test/groovy/gov/hhs/cdc/trustedintermediary/external/inmemory/PrivateMetricMetaDataTest.groovy b/shared/src/test/groovy/gov/hhs/cdc/trustedintermediary/external/inmemory/LoggingMetricMetaDataTest.groovy similarity index 71% rename from shared/src/test/groovy/gov/hhs/cdc/trustedintermediary/external/inmemory/PrivateMetricMetaDataTest.groovy rename to shared/src/test/groovy/gov/hhs/cdc/trustedintermediary/external/inmemory/LoggingMetricMetaDataTest.groovy index c679a1e81..839fca89f 100644 --- a/shared/src/test/groovy/gov/hhs/cdc/trustedintermediary/external/inmemory/PrivateMetricMetaDataTest.groovy +++ b/shared/src/test/groovy/gov/hhs/cdc/trustedintermediary/external/inmemory/LoggingMetricMetaDataTest.groovy @@ -5,21 +5,21 @@ import gov.hhs.cdc.trustedintermediary.metadata.MetaDataStep import gov.hhs.cdc.trustedintermediary.wrappers.MetricMetaData import spock.lang.Specification -class PrivateMetricMetaDataTest extends Specification { +class LoggingMetricMetaDataTest extends Specification { def setup() { TestApplicationContext.reset() TestApplicationContext.init() - TestApplicationContext.register(MetricMetaData, PrivateMetricMetaData.getInstance()) + TestApplicationContext.register(MetricMetaData, LoggingMetricMetaData.getInstance()) TestApplicationContext.injectRegisteredImplementations() } def "meta data map is populated"() { when: - PrivateMetricMetaData.getInstance().put("Key", MetaDataStep.RECEIVED_FROM_REPORT_STREAM) + LoggingMetricMetaData.getInstance().put("Key", MetaDataStep.RECEIVED_FROM_REPORT_STREAM) then: - PrivateMetricMetaData.getInstance().getMetaDataMap().containsKey("BundleId") + LoggingMetricMetaData.getInstance().getMetaDataMap().containsKey("BundleId") } }