Skip to content

Commit 24cf26f

Browse files
committed
Eksplisitt inject
1 parent b714ad2 commit 24cf26f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

domenetjenester/iay/src/main/java/no/nav/foreldrepenger/abakus/registerdata/ytelse/infotrygd/rest/felles/InfotrygdGrunnlagAggregator.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
import jakarta.enterprise.context.ApplicationScoped;
1212
import jakarta.inject.Inject;
1313
import no.nav.foreldrepenger.abakus.registerdata.ytelse.infotrygd.rest.ps.InfotrygdPSGrunnlag;
14+
import no.nav.foreldrepenger.abakus.registerdata.ytelse.infotrygd.rest.ps.PS;
1415
import no.nav.foreldrepenger.abakus.registerdata.ytelse.infotrygd.rest.sp.InfotrygdSPGrunnlag;
16+
import no.nav.foreldrepenger.abakus.registerdata.ytelse.infotrygd.rest.sp.SP;
17+
import no.nav.foreldrepenger.abakus.registerdata.ytelse.infotrygd.rest.sp.TSP;
1518
import no.nav.foreldrepenger.abakus.registerdata.ytelse.infotrygd.rest.sp.TestInfotrygdSPGrunnlag;
1619
import no.nav.vedtak.felles.integrasjon.infotrygd.grunnlag.InfotrygdGrunnlag;
1720
import no.nav.vedtak.felles.integrasjon.infotrygd.grunnlag.v1.respons.Grunnlag;
@@ -27,7 +30,7 @@ public class InfotrygdGrunnlagAggregator {
2730
}
2831

2932
@Inject
30-
public InfotrygdGrunnlagAggregator(InfotrygdPSGrunnlag ps, InfotrygdSPGrunnlag sp, TestInfotrygdSPGrunnlag tsp) {
33+
public InfotrygdGrunnlagAggregator(@PS InfotrygdPSGrunnlag ps, @SP InfotrygdSPGrunnlag sp, @TSP TestInfotrygdSPGrunnlag tsp) {
3134
this.tjenester = List.of(ps, sp);
3235
this.sykepenger = sp;
3336
this.testSykepenger = tsp;

0 commit comments

Comments
 (0)