BoundPropertiesTrackingBindHandler Class — spring-boot Architecture
Architecture documentation for the BoundPropertiesTrackingBindHandler class in BoundPropertiesTrackingBindHandler.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/BoundPropertiesTrackingBindHandler.java lines 33–51
public class BoundPropertiesTrackingBindHandler extends AbstractBindHandler {
private final Consumer<ConfigurationProperty> consumer;
public BoundPropertiesTrackingBindHandler(Consumer<ConfigurationProperty> consumer) {
Assert.notNull(consumer, "'consumer' must not be null");
this.consumer = consumer;
}
@Override
public @Nullable Object onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context,
Object result) {
if (context.getConfigurationProperty() != null && name.equals(context.getConfigurationProperty().getName())) {
this.consumer.accept(context.getConfigurationProperty());
}
return super.onSuccess(name, target, context, result);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free