1
0

Optimierung: Konfigurationspakete kohärenter zugeschnitten

This commit is contained in:
2026-04-05 11:17:33 +02:00
parent 5b95cc2561
commit 94728c270f
10 changed files with 49 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
package de.gecheckt.pdf.umbenenner.adapter.out.bootstrap.validation;
import de.gecheckt.pdf.umbenenner.application.config.StartConfiguration;
import de.gecheckt.pdf.umbenenner.application.config.startup.StartConfiguration;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

View File

@@ -14,12 +14,14 @@ import java.util.function.Function;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import de.gecheckt.pdf.umbenenner.application.config.StartConfiguration;
import de.gecheckt.pdf.umbenenner.application.config.startup.StartConfiguration;
import de.gecheckt.pdf.umbenenner.application.port.out.ConfigurationPort;
/**
* Properties-based implementation of {@link ConfigurationPort}.
* AP-005: Loads configuration from config/application.properties with environment variable precedence.
* <p>
* Loads configuration from config/application.properties with environment variable
* precedence for sensitive values like the API key.
*/
public class PropertiesConfigurationPortAdapter implements ConfigurationPort {

View File

@@ -1,5 +1,12 @@
/**
* Configuration adapters for outbound infrastructure access.
* Contains implementations of configuration loading from external sources.
* Configuration loading adapters.
* <p>
* Contains implementations of the {@link de.gecheckt.pdf.umbenenner.application.port.out.ConfigurationPort}
* that load the bootstrap-layer {@link de.gecheckt.pdf.umbenenner.bootstrap.configuration.StartConfiguration}
* from external sources (e.g., properties files, environment variables).
* <p>
* These adapters bridge the outbound port contract with concrete infrastructure
* (property file parsing, environment variable lookup) without leaking infrastructure
* details into the application or bootstrap layers.
*/
package de.gecheckt.pdf.umbenenner.adapter.out.configuration;

View File

@@ -1,6 +1,6 @@
package de.gecheckt.pdf.umbenenner.adapter.out.bootstrap.validation;
import de.gecheckt.pdf.umbenenner.application.config.StartConfiguration;
import de.gecheckt.pdf.umbenenner.application.config.startup.StartConfiguration;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;