
public interface ConfigurationBulkChangeHandler
Bulk changes of configuration parameters happen anytime there is a configuration change :
The bulk validation step is intended to validate that all (or a subset) of the provided parameters full view is in a consistent state. If problems are detected an exception is meant to be thrown, in which case the bulk change process is interrupted and the configuration state is left unchanged. Please note that the provided Map will contain all parameters with their values, whether the parameter has been changed or not. If not changed the parameter's value is the current value.
The bulk parameter setting method is invoked after a successful validation step. Exceptions should normally not be thrown at this step. If it happens, the configuration state may have been modified. The provided Map will only contain the parameters that have changed and that need to be set.
| Modifier and Type | Method and Description |
|---|---|
default void |
setParameterBulk(Map<String,Object> parametersView)
Set one or more configuration parameters to a new value.
|
default void |
validateBulkChange(Map<String,Object> parametersView)
Validate a set of proposed changes of configuration parameters of this
component.
|
default void validateBulkChange(Map<String,Object> parametersView)
parametersView - the whole set of parameters for this component with
their value to be validated. it maps the parameter names to their value.default void setParameterBulk(Map<String,Object> parametersView)
BulkSettingException. All parameters present in the
passed map do not have to be handled by this method : the parameters that
have not been set at this step will be set by the framework using an
available setter method, or directly on the corresponding fields using
introspection. This method is called by the framework only when
necessary.
Final configuration parameters will be involved in this step only during
the initial safe or build step if they have been changed.parametersView - a map of the parameters that have changed and
need to be set. The map contains the name of the parameters that are to be
set and their new value.Copyright © 2020 LSST. All rights reserved.