SpringEnvironmentPropertySource Class — spring-boot Architecture
Architecture documentation for the SpringEnvironmentPropertySource class in SpringEnvironmentPropertySource.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/SpringEnvironmentPropertySource.java lines 29–59
class SpringEnvironmentPropertySource implements PropertySource {
/**
* System properties take precedence followed by properties in Log4j properties files.
*/
private static final int PRIORITY = -100;
private volatile @Nullable Environment environment;
@Override
public int getPriority() {
return PRIORITY;
}
@Override
public @Nullable String getProperty(String key) {
Environment environment = this.environment;
return (environment != null) ? environment.getProperty(key) : null;
}
@Override
public boolean containsProperty(String key) {
Environment environment = this.environment;
return environment != null && environment.containsProperty(key);
}
void setEnvironment(@Nullable Environment environment) {
this.environment = environment;
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free