-
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 testnorge-statisk-data-forvalter sin bruk av …
…ServerProperties.
- Loading branch information
Showing
22 changed files
with
126 additions
and
206 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...ge-statisk-data-forvalter/src/main/java/no/nav/registre/sdforvalter/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,38 @@ | ||
package no.nav.registre.sdforvalter.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 testnavAaregProxy; | ||
private ServerProperties genererNavnService; | ||
private ServerProperties testnorgeHodejegeren; | ||
private ServerProperties kodeverk; | ||
private ServerProperties testnavOrganisasjonFasteDataService; | ||
private ServerProperties testnavOrganisasjonService; | ||
private ServerProperties testnavPersonFasteDataService; | ||
private ServerProperties person; | ||
private ServerProperties testnorgeTp; | ||
private ServerProperties tpsForvalterenProxy; | ||
|
||
} |
11 changes: 0 additions & 11 deletions
11
...rvalter/src/main/java/no/nav/registre/sdforvalter/config/credentials/AaregProperties.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...ain/java/no/nav/registre/sdforvalter/config/credentials/GenererNavnServiceProperties.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...lter/src/main/java/no/nav/registre/sdforvalter/config/credentials/KodeverkProperties.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...o/nav/registre/sdforvalter/config/credentials/OrganisasjonFasteDataServiceProperties.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...in/java/no/nav/registre/sdforvalter/config/credentials/OrganisasjonServiceProperties.java
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...java/no/nav/registre/sdforvalter/config/credentials/PersonFasteDataServiceProperties.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...src/main/java/no/nav/registre/sdforvalter/config/credentials/PersonServiceProperties.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ter/src/main/java/no/nav/registre/sdforvalter/config/credentials/TpsfProxyProperties.java
This file was deleted.
Oops, something went wrong.
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
10 changes: 0 additions & 10 deletions
10
...c/main/java/no/nav/registre/sdforvalter/consumer/rs/credential/HodejegerenProperties.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...c/main/java/no/nav/registre/sdforvalter/consumer/rs/credential/TestnorgeTpProperties.java
This file was deleted.
Oops, something went wrong.
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.