Package org.confng.validation
Annotation Type Pattern
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface Pattern
Validates that a configuration value matches a regular expression pattern.When applied to a ConfNGKey enum constant, validation will fail if the configuration value does not match the specified regex pattern.
Example usage:
{@code public enum MyConfig implements ConfNGKey {- Since:
- 1.1.0
- Author:
- Bharat Kumar Malviya, GitHub: github.com/imBharatMalviya
- See Also:
ConfigValidator