Skip to content

Commit

Permalink
Better anotation used
Browse files Browse the repository at this point in the history
  • Loading branch information
gr812b committed Dec 23, 2024
1 parent bc0bb2c commit 6178ca1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -17,7 +18,7 @@ public class AnalyzerFactory {

private Map<AnalyzerType, Analyzer> analyzerMap;

@Inject
@PostConstruct
public void init() {
analyzerMap = new EnumMap<>(AnalyzerType.class);
for (Analyzer analyzer : analyzers) {
Expand Down

0 comments on commit 6178ca1

Please sign in to comment.