postProcessEnvironment() — spring-boot Function Reference
Architecture documentation for the postProcessEnvironment() function in CloudFoundryVcapEnvironmentPostProcessor.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 73a975fd_f2ec_431c_ebcd_1dc5867c0a23["postProcessEnvironment()"] 6feabfe5_54aa_1ee7_f80c_f4b9c409643a["postProcessEnvironment()"] 73a975fd_f2ec_431c_ebcd_1dc5867c0a23 -->|calls| 6feabfe5_54aa_1ee7_f80c_f4b9c409643a 2ba9d365_1256_1507_3546_512aa468633f["getJsonParser()"] 73a975fd_f2ec_431c_ebcd_1dc5867c0a23 -->|calls| 2ba9d365_1256_1507_3546_512aa468633f 55909e84_9097_af5b_453c_a0ac513dafcc["addWithPrefix()"] 73a975fd_f2ec_431c_ebcd_1dc5867c0a23 -->|calls| 55909e84_9097_af5b_453c_a0ac513dafcc 751352b1_547f_56ea_4381_1f38a21df04c["getPropertiesFromApplication()"] 73a975fd_f2ec_431c_ebcd_1dc5867c0a23 -->|calls| 751352b1_547f_56ea_4381_1f38a21df04c 984c30e6_b242_f884_d398_c38e540310b1["getPropertiesFromServices()"] 73a975fd_f2ec_431c_ebcd_1dc5867c0a23 -->|calls| 984c30e6_b242_f884_d398_c38e540310b1 style 73a975fd_f2ec_431c_ebcd_1dc5867c0a23 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java lines 118–134
@Override
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
if (CloudPlatform.CLOUD_FOUNDRY.isActive(environment)) {
Properties properties = new Properties();
JsonParser jsonParser = JsonParserFactory.getJsonParser();
addWithPrefix(properties, getPropertiesFromApplication(environment, jsonParser), "vcap.application.");
addWithPrefix(properties, getPropertiesFromServices(environment, jsonParser), "vcap.services.");
MutablePropertySources propertySources = environment.getPropertySources();
PropertiesPropertySource vcapSource = new PropertiesPropertySource("vcap", properties);
if (propertySources.contains(CommandLinePropertySource.COMMAND_LINE_PROPERTY_SOURCE_NAME)) {
propertySources.addAfter(CommandLinePropertySource.COMMAND_LINE_PROPERTY_SOURCE_NAME, vcapSource);
}
else {
propertySources.addFirst(vcapSource);
}
}
}
Domain
Subdomains
Calls
- addWithPrefix()
- getJsonParser()
- getPropertiesFromApplication()
- getPropertiesFromServices()
- postProcessEnvironment()
Source
Frequently Asked Questions
What does postProcessEnvironment() do?
postProcessEnvironment() is a function in the spring-boot codebase.
What does postProcessEnvironment() call?
postProcessEnvironment() calls 5 function(s): addWithPrefix, getJsonParser, getPropertiesFromApplication, getPropertiesFromServices, postProcessEnvironment.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free