-
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 organisasjon-forvalter sin bruk av ServerProp…
…erties.
- Loading branch information
Showing
14 changed files
with
85 additions
and
116 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
apps/organisasjon-forvalter/src/main/java/no/nav/organisasjonforvalter/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,35 @@ | ||
package no.nav.organisasjonforvalter.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 testnavAdresseService; | ||
private ServerProperties genererNavnService; | ||
private ServerProperties testnavMiljoerService; | ||
private ServerProperties organisasjonBestillingService; | ||
private ServerProperties testnavOrganisasjonService; | ||
private ServerProperties testnavOrgnummerService; | ||
|
||
|
||
} |
12 changes: 0 additions & 12 deletions
12
...c/main/java/no/nav/organisasjonforvalter/config/credentials/AdresseServiceProperties.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...in/java/no/nav/organisasjonforvalter/config/credentials/GenererNavnServiceProperties.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...c/main/java/no/nav/organisasjonforvalter/config/credentials/MiljoerServiceProperties.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...nav/organisasjonforvalter/config/credentials/OrganisasjonBestillingServiceProperties.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...n/java/no/nav/organisasjonforvalter/config/credentials/OrganisasjonServiceProperties.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...va/no/nav/organisasjonforvalter/config/credentials/TestnavOrgnummerServiceProperties.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
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