Interface ConfigValidator<T, A extends Annotation>
public interface ConfigValidator<T, A extends Annotation>
A config validator is used to read a custom validation annotation from a config field
and validate the value so it for example matches an int range.
Validators are applied when a config is read from a file. They are not applied if a
server sends a config, and they'll not validate the default value.
-
Method Details
-
type
-
annotation
-
validate
-
comment
-