@Interceptor @Priority(value=4800) public class ValidationInterceptor extends Object implements Serializable
Constructor and Description |
---|
ValidationInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
validateConstructorInvocation(InvocationContext ctx)
Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted constructor.
|
Object |
validateMethodInvocation(InvocationContext ctx)
Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted method.
|
public Object validateMethodInvocation(InvocationContext ctx) throws Exception
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(InvocationContext ctx) throws Exception
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 © 2017 JBoss by Red Hat. All rights reserved.