@Interceptor
@Priority(value=4800)
public class ValidationInterceptor
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ValidationInterceptor() |
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.
|
java.lang.Object |
validateMethodInvocation(javax.interceptor.InvocationContext ctx)
Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted method.
|
public java.lang.Object validateMethodInvocation(javax.interceptor.InvocationContext ctx) throws java.lang.Exception
ctx
- The context of the intercepted method invocation.java.lang.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 java.lang.Exception
ctx
- The context of the intercepted constructor invocation.java.lang.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 © 2007-2022 Red Hat, Inc. All Rights Reserved