Skip to content
Snippets Groups Projects
Commit 27562f2d authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4095 config: Make nested classes public

parent f16bf35e
Branches
Tags
2 merge requests!9Draft: Ozg 4094 wiremock ausprobieren,!7Ozg-4094 Konfiguration für nachrichten-manager
Pipeline #1548 passed
......@@ -7,23 +7,29 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@Configuration
@ConditionalOnProperty(prefix = Osi2PostfachProperties.PREFIX, name = "enabled", havingValue = "true")
@RequiredArgsConstructor
public class Osi2PostfachProperties {
public static final String PREFIX = "ozgcloud.osiv2-postfach";
private boolean enabled;
private final ApiConfiguration api;
private final ProxyConfiguration httpProxy;
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = ApiConfiguration.PREFIX)
static class ApiConfiguration {
public static class ApiConfiguration {
static final String PREFIX = Osi2PostfachProperties.PREFIX + ".api";
private String resource;
......@@ -40,7 +46,7 @@ public class Osi2PostfachProperties {
@Setter
@Configuration
@ConfigurationProperties(prefix = ProxyConfiguration.PREFIX)
static class ProxyConfiguration {
public static class ProxyConfiguration {
static final String PREFIX = Osi2PostfachProperties.PREFIX + ".http-proxy";
private boolean enabled;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment