Annotation Type Required
@Documented
@Retention(RUNTIME)
@Target({FIELD,PARAMETER})
@Constraint(RequiredValidator.class)
public @interface Required
Marks a plugin builder field or plugin factory parameter as required.
- Since:
- 2.1
-
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messageThe message to be logged if this constraint is violated. This should normally be overridden. It may contain a {} placeholder for the field's name.- Default:
- "The parameter is null: {}"
-