public interface ValidationInterceptorContext
ValidationInterceptor
).
The context gives access to key validation data.
It also allows interceptor implementation to tweak resource and/or parameters that are going to be validated.ValidationInterceptor
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArgs()
Provide method parameters for which validation will be done.
|
Invocable |
getInvocable()
Provide invocable for which validation will been done.
|
java.lang.Object |
getResource()
Provide actual resource instance that will get validated.
|
void |
proceed()
Proceed with validation.
|
void |
setArgs(java.lang.Object[] args)
Method parameters setter.
|
void |
setResource(java.lang.Object resource)
Setter for resource instance that should get validated.
|
java.lang.Object getResource()
void setResource(java.lang.Object resource)
resource
- instance to validateInvocable getInvocable()
java.lang.Object[] getArgs()
void setArgs(java.lang.Object[] args)
args
- method parameters to be used for validation.void proceed() throws ValidationException
ValidationException
- in case the further validation processing failed with a validation error.