Skip to content

Commit

Permalink
Fjerner opplysningsbehovløser. Flyttet til dp-soknad-orkestrator.
Browse files Browse the repository at this point in the history
  • Loading branch information
geiralund committed Jun 25, 2024
1 parent 61936b1 commit b3fedc2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 465 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package no.nav.dagpenger.mottak
import mu.KotlinLogging
import no.nav.dagpenger.mottak.Config.dokarkivTokenProvider
import no.nav.dagpenger.mottak.api.innsendingApi
import no.nav.dagpenger.mottak.behov.eksterne.PostgresSøknadQuizOppslag
import no.nav.dagpenger.mottak.behov.eksterne.SøknadFaktaQuizLøser
import no.nav.dagpenger.mottak.behov.journalpost.FerdigstillJournalpostBehovLøser
import no.nav.dagpenger.mottak.behov.journalpost.JournalpostApiClient
import no.nav.dagpenger.mottak.behov.journalpost.JournalpostBehovLøser
Expand All @@ -30,7 +28,9 @@ import no.nav.helse.rapids_rivers.RapidsConnection

private val logg = KotlinLogging.logger {}

internal class ApplicationBuilder(env: Map<String, String>) : RapidsConnection.StatusListener {
internal class ApplicationBuilder(
env: Map<String, String>,
) : RapidsConnection.StatusListener {
private val innsendingRepository = InnsendingPostgresRepository(PostgresDataSourceBuilder.dataSource)
private val safClient = SafClient(Config.properties)
private val arenaApiClient = ArenaApiClient(Config.properties)
Expand All @@ -39,18 +39,18 @@ internal class ApplicationBuilder(env: Map<String, String>) : RapidsConnection.S
private val ferdigstiltInnsendingObserver = FerdigstiltInnsendingObserver(Config.kafkaProducerProperties)

private val rapidsConnection =
RapidApplication.Builder(
RapidApplication.RapidApplicationConfig.fromEnv(env),
)
.also { builder ->
RapidApplication
.Builder(
RapidApplication.RapidApplicationConfig.fromEnv(env),
).also { builder ->
builder.withKtorModule {
innsendingApi(
innsendingRepository,
ferdigstiltInnsendingObserver,
)
}
}
.build().apply {
}.build()
.apply {
val mediator =
InnsendingMediator(
innsendingRepository = innsendingRepository,
Expand All @@ -76,9 +76,6 @@ internal class ApplicationBuilder(env: Map<String, String>) : RapidsConnection.S
SøknadsdataBehovLøser(safClient, this)
ArenaBehovLøser(arenaApiClient, this)
OpprettGosysOppgaveLøser(gosysOppslag, this)

// Eksterne behovløsere
SøknadFaktaQuizLøser(PostgresSøknadQuizOppslag(PostgresDataSourceBuilder.dataSource), this)
}

init {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b3fedc2

Please sign in to comment.