-
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-sykemelding-api sin bruk av ServerProper…
…ties.
- Loading branch information
Showing
19 changed files
with
95 additions
and
129 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...ykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/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,34 @@ | ||
package no.nav.testnav.apps.syntsykemeldingapi.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 testnavArbeidsforholdService; | ||
private ServerProperties testnavHelsepersonellService; | ||
private ServerProperties testnavOrganisasjonService; | ||
private ServerProperties testnavPdlProxy; | ||
private ServerProperties sykemeldingApi; | ||
private ServerProperties syntSykemelding; | ||
|
||
} |
12 changes: 0 additions & 12 deletions
12
...v/testnav/apps/syntsykemeldingapi/config/credentials/ArbeidsforholdServiceProperties.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...v/testnav/apps/syntsykemeldingapi/config/credentials/HelsepersonellServiceProperties.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...nav/testnav/apps/syntsykemeldingapi/config/credentials/OrganisasjonServiceProperties.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...in/java/no/nav/testnav/apps/syntsykemeldingapi/config/credentials/PdlProxyProperties.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...java/no/nav/testnav/apps/syntsykemeldingapi/config/credentials/SykemeldingProperties.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
.../no/nav/testnav/apps/syntsykemeldingapi/config/credentials/SyntSykemeldingProperties.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
14 changes: 7 additions & 7 deletions
14
...i/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/OrganisasjonConsumer.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
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.