@RequestScoped @Intercepts(before=ExecuteMethodInterceptor.class, after=ParametersInstantiatorInterceptor.class) public class MethodValidatorInterceptor extends java.lang.Object implements Interceptor
Constructor and Description |
---|
MethodValidatorInterceptor(ParameterNameProvider provider,
Localization localization,
javax.validation.MessageInterpolator interpolator,
Validator validator,
MethodInfo methodInfo,
org.hibernate.validator.method.MethodValidator methodValidator) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(ResourceMethod method) |
void |
intercept(InterceptorStack stack,
ResourceMethod method,
java.lang.Object resourceInstance) |
public MethodValidatorInterceptor(ParameterNameProvider provider, Localization localization, javax.validation.MessageInterpolator interpolator, Validator validator, MethodInfo methodInfo, org.hibernate.validator.method.MethodValidator methodValidator)
public boolean accepts(ResourceMethod method)
accepts
in interface Interceptor
public void intercept(InterceptorStack stack, ResourceMethod method, java.lang.Object resourceInstance) throws InterceptionException
intercept
in interface Interceptor
InterceptionException
Copyright © 2013 Caelum. All Rights Reserved.