Optimierung: Konfigurationspakete kohärenter zugeschnitten
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user