@Interceptor public class ValidationInterceptor extends Object implements Serializable
| Constructor and Description |
|---|
ValidationInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
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
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.Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved