diff --git a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataOrchestrator.java b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataOrchestrator.java index ab1746058..33a8091e0 100644 --- a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataOrchestrator.java +++ b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataOrchestrator.java @@ -32,7 +32,6 @@ public class PartnerMetadataOrchestrator { @Inject PartnerMetadataStorage partnerMetadataStorage; @Inject MessageLinkStorage messageLinkStorage; - // @Inject RSEndpointClient rsclient; @Inject Formatter formatter; @Inject Logger logger; diff --git a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/reportstream/ReportStreamSenderHelper.java b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/reportstream/ReportStreamSenderHelper.java index 85f0cb0c4..86877377f 100644 --- a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/reportstream/ReportStreamSenderHelper.java +++ b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/reportstream/ReportStreamSenderHelper.java @@ -18,7 +18,6 @@ public class ReportStreamSenderHelper { private static final ReportStreamSenderHelper INSTANCE = new ReportStreamSenderHelper(); - // @Inject RSEndpointClient rsclient; @Inject Formatter formatter; @Inject Logger logger; @Inject MetricMetadata metadata; diff --git a/shared/src/main/java/gov/hhs/cdc/trustedintermediary/context/ApplicationContext.java b/shared/src/main/java/gov/hhs/cdc/trustedintermediary/context/ApplicationContext.java index 46b5f2599..0c4b3afea 100644 --- a/shared/src/main/java/gov/hhs/cdc/trustedintermediary/context/ApplicationContext.java +++ b/shared/src/main/java/gov/hhs/cdc/trustedintermediary/context/ApplicationContext.java @@ -53,6 +53,10 @@ public static void registerForThread(Class clazz, Object implementation) { THREAD_OBJECT_MAP.set(threadObjectMap); + // The implementation may never have had anything injected into it + // (e.g. it wasn't part of the bootstrapping implementations registered into the + // ApplicationContext), + // so inject into the implementation now. injectIntoNonSingleton(implementation); }