-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fjernet boilerplate fra synt-vedtakshistorikk-service sin bruk av Ser…
…verProperties.
- Loading branch information
Showing
22 changed files
with
128 additions
and
163 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...rvice/src/main/java/no/nav/testnav/apps/syntvedtakshistorikkservice/config/Consumers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package no.nav.testnav.apps.syntvedtakshistorikkservice.config; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import no.nav.testnav.libs.securitycore.domain.ServerProperties; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import static lombok.AccessLevel.PACKAGE; | ||
|
||
/** | ||
* Samler alle placeholders for ulike {@code consumers.*}-konfigurasjon her, dvs. subklasser av {@code ServerProperties}. | ||
* <br/><br/> | ||
* Husk at Spring Boot bruker <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config.typesafe-configuration-properties.relaxed-binding">relaxed binding</a> | ||
* mellom configuration properties og field names. | ||
* | ||
* @see ServerProperties | ||
*/ | ||
@Configuration | ||
@ConfigurationProperties(prefix = "consumers") | ||
@NoArgsConstructor(access = PACKAGE) | ||
@Getter | ||
@Setter(PACKAGE) | ||
public class Consumers { | ||
|
||
private ServerProperties testnavArenaForvalterenProxy; | ||
private ServerProperties testnavInntektstubProxy; | ||
private ServerProperties testnavOrganisasjonFasteDataService; | ||
private ServerProperties pdlApiProxy; | ||
private ServerProperties testnavPensjonTestdataFacadeProxy; | ||
private ServerProperties testnavPersonSearchService; | ||
private ServerProperties syntDagpenger; | ||
private ServerProperties syntVedtakshistorikk; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.