You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define the enable function in BindingsPropertiesProcessor like this:
/** * An interface for types that transform the contents of a {@link Bindings} into properties for injection into a * {@link org.springframework.core.env.PropertySource}. */@FunctionalInterfacepublicinterfaceBindingsPropertiesProcessor {
/** * Transform the currently accumulated {@link Bindings}-related properties. * * @param environment the {@link Environment} that the processor is executing with. * @param bindings the {@code Bindings} exposed to the application. * @param properties the currently accumulated properties. */voidprocess(Environmentenvironment, Bindingsbindings, Map<String, Object> properties);
/** * Whether it is enabled the processor. * @param environment the {@link Environment} that the processor is executing with. * @return if true the to execute process. */defaultbooleanenable(Environmentenvironment) {
returntrue;
}
}
Processing the verification operations coupled in the process through the enable function is more reasonable in design, and the implementation of subclasses will also be more elegant.
The text was updated successfully, but these errors were encountered:
Define the enable function in BindingsPropertiesProcessor like this:
Processing the verification operations coupled in the process through the enable function is more reasonable in design, and the implementation of subclasses will also be more elegant.
The text was updated successfully, but these errors were encountered: