@Interceptor @Priority(value=4800) public class MethodValidationInterceptor extends AbstractMethodValidationInterceptor
validator
Constructor and Description |
---|
MethodValidationInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
validateConstructorInvocation(javax.interceptor.InvocationContext ctx)
Validates the Bean Validation constraints specified at the parameters and/or
return value of the intercepted constructor.
|
Object |
validateMethodInvocation(javax.interceptor.InvocationContext ctx)
Validates the Bean Validation constraints specified at the parameters and/or
return value of the intercepted method.
|
public Object validateMethodInvocation(javax.interceptor.InvocationContext ctx) throws Exception
AbstractMethodValidationInterceptor
validateMethodInvocation
in class AbstractMethodValidationInterceptor
ctx
- The context of the intercepted method invocation.Exception
- Any exception caused by the intercepted method invocation.
A ConstraintViolationException
in case at least one
constraint violation occurred either during parameter or
return value validation.public void validateConstructorInvocation(javax.interceptor.InvocationContext ctx) throws Exception
AbstractMethodValidationInterceptor
validateConstructorInvocation
in class AbstractMethodValidationInterceptor
ctx
- The context of the intercepted constructor invocation.Exception
- Any exception caused by the intercepted constructor
invocation. A ConstraintViolationException
in case
at least one constraint violation occurred either during
parameter or return value validation.Copyright © 2020 JBoss by Red Hat. All rights reserved.