diff --git a/backend/src/main/java/com/mcmasterbaja/analyzer/AnalyzerFactory.java b/backend/src/main/java/com/mcmasterbaja/analyzer/AnalyzerFactory.java index 1ba11e25..90d1b72f 100644 --- a/backend/src/main/java/com/mcmasterbaja/analyzer/AnalyzerFactory.java +++ b/backend/src/main/java/com/mcmasterbaja/analyzer/AnalyzerFactory.java @@ -1,6 +1,7 @@ package com.mcmasterbaja.analyzer; import com.mcmasterbaja.model.AnalyzerType; +import jakarta.annotation.PostConstruct; import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.inject.Any; import jakarta.enterprise.inject.Instance; @@ -17,7 +18,7 @@ public class AnalyzerFactory { private Map analyzerMap; - @Inject + @PostConstruct public void init() { analyzerMap = new EnumMap<>(AnalyzerType.class); for (Analyzer analyzer : analyzers) {