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 |
---|---|
Object[] |
getArgs()
Provide method parameters for which validation will be done.
|
Invocable |
getInvocable()
Provide invocable for which validation will been done.
|
Object |
getResource()
Provide actual resource instance that will get validated.
|
void |
proceed()
Proceed with validation.
|
void |
setArgs(Object[] args)
Method parameters setter.
|
void |
setResource(Object resource)
Setter for resource instance that should get validated.
|
Object getResource()
void setResource(Object resource)
resource
- instance to validateInvocable getInvocable()
Object[] getArgs()
void setArgs(Object[] args)
args
- method parameters to be used for validation.void proceed() throws javax.validation.ValidationException
javax.validation.ValidationException
- in case the further validation processing failed with a validation error.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.