public class ValidatorInterceptor extends Object
| Modifier and Type | Field and Description |
|---|---|
private Class<?>[] |
groups |
private static org.slf4j.Logger |
logger |
private Validator |
validator |
| Modifier | Constructor and Description |
|---|---|
protected |
ValidatorInterceptor() |
|
ValidatorInterceptor(Class<?>[] groups) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
private List<String> |
getErrors(Set<ConstraintViolation<Object>> violations) |
void |
init() |
Object |
invoke(InvocationContext ctx) |
private static org.slf4j.Logger logger
private Class<?>[] groups
protected ValidatorInterceptor()
public ValidatorInterceptor(Class<?>[] groups)
@PostConstruct public void init()
@PreDestroy public void destroy()
public Object invoke(InvocationContext ctx) throws Exception
Exceptionprivate List<String> getErrors(Set<ConstraintViolation<Object>> violations)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.