|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Validate
Marker for methods which arguments have to be validated.
Optional Element Summary | |
---|---|
String |
exceptionMessage
A custom error message when throwing the custom exception. |
Class<?>[] |
groups
The groups have to be validated, empty by default. |
Class<? extends Throwable> |
rethrowExceptionsAs
The exception re-thrown when an error occurs during the validation. |
boolean |
validateReturnedValue
Marks if the returned object by the intercepted method execution has to be validated, false by default. |
public abstract Class<?>[] groups
public abstract boolean validateReturnedValue
public abstract Class<? extends Throwable> rethrowExceptionsAs
public abstract String exceptionMessage
Formatter.format(String, Object...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |