Class ValidatorInterceptor
- java.lang.Object
-
- info.ejava.examples.ejb.interceptor.interceptors.ValidatorInterceptor
-
- Direct Known Subclasses:
PostNormizedInterceptor
,PreNormizedInterceptor
public class ValidatorInterceptor extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValidatorInterceptor()
ValidatorInterceptor(Class<?>[] groups)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
private List<String>
getErrors(Set<javax.validation.ConstraintViolation<Object>> violations)
void
init()
Object
invoke(InvocationContext ctx)
-
-
-
Constructor Detail
-
ValidatorInterceptor
protected ValidatorInterceptor()
-
ValidatorInterceptor
public ValidatorInterceptor(Class<?>[] groups)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
invoke
public Object invoke(InvocationContext ctx) throws Exception
- Throws:
Exception
-
-