@@ -101,7 +101,8 @@ private EnvironmentDescriptor getEnvironmentDescriptor(Predicate<String> propert
101
101
propertyNamePredicate , showUnsanitized ));
102
102
}
103
103
});
104
- return new EnvironmentDescriptor (Arrays .asList (this .environment .getActiveProfiles ()), propertySources );
104
+ return new EnvironmentDescriptor (Arrays .asList (this .environment .getActiveProfiles ()),
105
+ Arrays .asList (this .environment .getDefaultProfiles ()), propertySources );
105
106
}
106
107
107
108
@ ReadOperation
@@ -114,7 +115,7 @@ EnvironmentEntryDescriptor getEnvironmentEntryDescriptor(String propertyName, bo
114
115
Map <String , PropertyValueDescriptor > descriptors = getPropertySourceDescriptors (propertyName , showUnsanitized );
115
116
PropertySummaryDescriptor summary = getPropertySummaryDescriptor (descriptors );
116
117
return new EnvironmentEntryDescriptor (summary , Arrays .asList (this .environment .getActiveProfiles ()),
117
- toPropertySourceDescriptors (descriptors ));
118
+ Arrays . asList ( this . environment . getDefaultProfiles ()), toPropertySourceDescriptors (descriptors ));
118
119
}
119
120
120
121
private List <PropertySourceEntryDescriptor > toPropertySourceDescriptors (
@@ -209,17 +210,25 @@ public static final class EnvironmentDescriptor implements OperationResponseBody
209
210
210
211
private final List <String > activeProfiles ;
211
212
213
+ private final List <String > defaultProfiles ;
214
+
212
215
private final List <PropertySourceDescriptor > propertySources ;
213
216
214
- private EnvironmentDescriptor (List <String > activeProfiles , List <PropertySourceDescriptor > propertySources ) {
217
+ private EnvironmentDescriptor (List <String > activeProfiles , List <String > defaultProfiles ,
218
+ List <PropertySourceDescriptor > propertySources ) {
215
219
this .activeProfiles = activeProfiles ;
220
+ this .defaultProfiles = defaultProfiles ;
216
221
this .propertySources = propertySources ;
217
222
}
218
223
219
224
public List <String > getActiveProfiles () {
220
225
return this .activeProfiles ;
221
226
}
222
227
228
+ public List <String > getDefaultProfiles () {
229
+ return this .defaultProfiles ;
230
+ }
231
+
223
232
public List <PropertySourceDescriptor > getPropertySources () {
224
233
return this .propertySources ;
225
234
}
@@ -236,12 +245,15 @@ public static final class EnvironmentEntryDescriptor {
236
245
237
246
private final List <String > activeProfiles ;
238
247
248
+ private final List <String > defaultProfiles ;
249
+
239
250
private final List <PropertySourceEntryDescriptor > propertySources ;
240
251
241
252
EnvironmentEntryDescriptor (PropertySummaryDescriptor property , List <String > activeProfiles ,
242
- List <PropertySourceEntryDescriptor > propertySources ) {
253
+ List <String > defaultProfiles , List < PropertySourceEntryDescriptor > propertySources ) {
243
254
this .property = property ;
244
255
this .activeProfiles = activeProfiles ;
256
+ this .defaultProfiles = defaultProfiles ;
245
257
this .propertySources = propertySources ;
246
258
}
247
259
@@ -253,6 +265,10 @@ public List<String> getActiveProfiles() {
253
265
return this .activeProfiles ;
254
266
}
255
267
268
+ public List <String > getDefaultProfiles () {
269
+ return this .defaultProfiles ;
270
+ }
271
+
256
272
public List <PropertySourceEntryDescriptor > getPropertySources () {
257
273
return this .propertySources ;
258
274
}
0 commit comments