public interface LookupDataAdapterConfiguration
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_FIELD |
| Modifier and Type | Method and Description |
|---|---|
String |
type() |
default Optional<com.google.common.collect.Multimap<String,String>> |
validate()
Override this method to check for logical errors in the configuration, such as missing
files, or invalid combinations of options.
|
default Optional<com.google.common.collect.Multimap<String,String>> |
validate(LookupDataAdapterValidationContext validationContext)
Same as
validate() but providing access to additional services via the given context object. |
static final String TYPE_FIELD
String type()
default Optional<com.google.common.collect.Multimap<String,String>> validate()
Override this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options. Prefer validation annotations for simple per-property validations rules, such as min/max values, non-empty strings etc.
By default the configuration has no extra validation errors (i.e. the result of this
method is Optional.empty().
Returning failing validations here does not prevent saving the configuration!
If your validation needs access to additional services, override
validate(LookupDataAdapterValidationContext) instead.
default Optional<com.google.common.collect.Multimap<String,String>> validate(LookupDataAdapterValidationContext validationContext)
validate() but providing access to additional services via the given context object.
If you override this message, don't also override validate() as the calling code is not expected
to call both methods.
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.