read() — spring-boot Function Reference
Architecture documentation for the read() function in JsonMarshaller.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 30292bfa_e8ed_1caa_f042_78733422492f["read()"] 708e966d_bf51_be15_d665_bfa02c2b39fa["resolveConfigurationMetadata()"] 708e966d_bf51_be15_d665_bfa02c2b39fa -->|calls| 30292bfa_e8ed_1caa_f042_78733422492f a59d1959_9edf_9dd3_83ce_2884ca67350a["readMetadata()"] a59d1959_9edf_9dd3_83ce_2884ca67350a -->|calls| 30292bfa_e8ed_1caa_f042_78733422492f 70ed03dc_bae1_007a_32eb_b025476f45ca["readMetadata()"] 70ed03dc_bae1_007a_32eb_b025476f45ca -->|calls| 30292bfa_e8ed_1caa_f042_78733422492f 6db1d912_8683_85db_65be_1a11eb09f91e["getMetadata()"] 6db1d912_8683_85db_65be_1a11eb09f91e -->|calls| 30292bfa_e8ed_1caa_f042_78733422492f 135fcb76_5f4d_6bcf_4ec3_690e10d8d879["JSONObject()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| 135fcb76_5f4d_6bcf_4ec3_690e10d8d879 f4df15dd_d7da_dc95_35f4_f43327f4b012["root()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| f4df15dd_d7da_dc95_35f4_f43327f4b012 4c649efe_9b8c_671f_8543_8e5ce14da8b6["checkAllowedKeys()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| 4c649efe_9b8c_671f_8543_8e5ce14da8b6 a4ddef17_9e29_3655_ab30_36b478cdc572["toItemMetadata()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| a4ddef17_9e29_3655_ab30_36b478cdc572 9af42522_7f42_0aca_2b3d_1384bb4a48ed["resolve()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| 9af42522_7f42_0aca_2b3d_1384bb4a48ed 3d479b6d_fdd2_3293_ee03_ddc08ef5e063["index()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| 3d479b6d_fdd2_3293_ee03_ddc08ef5e063 df10d13e_2f95_92e4_f0a3_a432b7541a24["toItemHint()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| df10d13e_2f95_92e4_f0a3_a432b7541a24 243c6917_5588_f779_9f81_3b5d46c64fe2["addIgnoredProperties()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| 243c6917_5588_f779_9f81_3b5d46c64fe2 c34cabe8_8204_3dd1_614a_5c365b012bee["optJSONArray()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| c34cabe8_8204_3dd1_614a_5c365b012bee ddc6afa8_7405_eac5_8bc7_c1f7781c5af8["length()"] 30292bfa_e8ed_1caa_f042_78733422492f -->|calls| ddc6afa8_7405_eac5_8bc7_c1f7781c5af8 style 30292bfa_e8ed_1caa_f042_78733422492f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/JsonMarshaller.java lines 68–100
public ConfigurationMetadata read(InputStream inputStream) throws Exception {
ConfigurationMetadata metadata = new ConfigurationMetadata();
JSONObject object = new JSONObject(toString(inputStream));
JsonPath path = JsonPath.root();
checkAllowedKeys(object, path, "groups", "properties", "hints", "ignored");
JSONArray groups = object.optJSONArray("groups");
if (groups != null) {
for (int i = 0; i < groups.length(); i++) {
metadata
.add(toItemMetadata((JSONObject) groups.get(i), path.resolve("groups").index(i), ItemType.GROUP));
}
}
JSONArray properties = object.optJSONArray("properties");
if (properties != null) {
for (int i = 0; i < properties.length(); i++) {
metadata.add(toItemMetadata((JSONObject) properties.get(i), path.resolve("properties").index(i),
ItemType.PROPERTY));
}
}
JSONArray hints = object.optJSONArray("hints");
if (hints != null) {
for (int i = 0; i < hints.length(); i++) {
metadata.add(toItemHint((JSONObject) hints.get(i), path.resolve("hints").index(i)));
}
}
JSONObject ignored = object.optJSONObject("ignored");
if (ignored != null) {
JsonPath ignoredPath = path.resolve("ignored");
checkAllowedKeys(ignored, ignoredPath, "properties");
addIgnoredProperties(metadata, ignored, ignoredPath);
}
return metadata;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does read() do?
read() is a function in the spring-boot codebase.
What does read() call?
read() calls 13 function(s): JSONObject, addIgnoredProperties, checkAllowedKeys, get, index, length, optJSONArray, optJSONObject, and 5 more.
What calls read()?
read() is called by 4 function(s): getMetadata, readMetadata, readMetadata, resolveConfigurationMetadata.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free