use of org.springframework.boot.context.properties.BoundConfigurationProperties in project spring-boot by spring-projects.
the class ConfigurationPropertiesReportEndpoint method getCandidate.
private ConfigurationProperty getCandidate(ConfigurationPropertyName currentName) {
BoundConfigurationProperties bound = BoundConfigurationProperties.get(this.context);
if (bound == null) {
return null;
}
ConfigurationProperty candidate = bound.get(currentName);
if (candidate == null && currentName.isLastElementIndexed()) {
candidate = bound.get(currentName.chop(currentName.getNumberOfElements() - 1));
}
return candidate;
}
Aggregations