Class ValidAdvice
java.lang.Object
es.kukenan.smartfi.common.service.validation.annotations.ValidAdvice
Aspect used to inject validation logic before a method execution.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BeanValidatorServiceBean validator service.static final StringDefault description for the exceptions to throw if one is not given. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateBean(org.aspectj.lang.JoinPoint joinPoint) Validation logic to execute before method call.
-
Field Details
-
INVALID_CALL
Default description for the exceptions to throw if one is not given.- See Also:
-
beanValidatorService
Bean validator service.
-
-
Constructor Details
-
ValidAdvice
public ValidAdvice()
-
-
Method Details
-
validateBean
public void validateBean(org.aspectj.lang.JoinPoint joinPoint) Validation logic to execute before method call. This logic is only injected in methods that contains, at least, an argument annotated withValid.- Parameters:
joinPoint- join point details, used to extract method arguments definitions and values.- Throws:
InvalidCallException- if validation problems found in the bean.
-