Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 877 Bytes

configuration_validation.md

File metadata and controls

27 lines (22 loc) · 877 Bytes

Backoffice Configuration Validation - IConfigurationValidation

Introduce IConfigurationValidation interface to support configuration validation.

/**
 * Interface allows validating the driver configuration before it is saved to
 * the database from unTill(r) Backoffice.
 *
 */
public interface IConfigurationValidation extends IDriverInterface {

    /**
     * Called just before driver configuration saved to the database
     * 
     * @param config
     *            Driver Configuration to be saved
     * @return Returns an instance of DriverConfiguration which will be saved *         to the database
     * @throws EConfigurationValidationFailed
     *             Thrown when validation is failed
     */
    DriverConfiguration validate(DriverConfiguration config) 
            throws EConfigurationValidationFailed;
}