Interface Settings

  • All Known Implementing Classes:
    EmptySettings


    public interface Settings
    Base settings interface from which all other settings extend.
    • Method Detail

      • validate

        boolean validate​()
        Check that the settings are sufficiently complete to allow them to be used.

        You should log any errors in validation.

        Validation will be ignored/superceded by more strict validation by the caller (for example, the caller might offer defaults if data is missing). However the implementation should be sufficiently robust that the use of settings instance as-is would not cause null pointers or obvious errors.

        Returns:
        true is the settings are valid