|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Pre
Before the annotated method is executed the expression is evaluated.
This evaluation happens after the single parameter constraints were validated
and only if no parameter constraint violations were detected.
If constraint violations occur, the annotated method will not be executed
instead it will throw a ConstraintsViolatedException exception.
Required Element Summary | |
---|---|
String |
expr
formula in the given expression language describing the constraint. the formula must return true if the constraint is satisfied. |
String |
lang
the expression language that is used |
Optional Element Summary | |
---|---|
String |
errorCode
error code passed to the ConstraintViolation object |
String |
message
message to be used for the ContraintsViolatedException |
String[] |
profiles
The associated constraint profiles. |
int |
severity
severity passed to the ConstraintViolation object |
Element Detail |
---|
public abstract String expr
public abstract String lang
public abstract String errorCode
public abstract String message
ConstraintsViolatedException
public abstract String[] profiles
public abstract int severity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |