public final class MethodValidator extends Object
We do this manual processing of javax.validation.constraints.*
annotations only because
JSR-303 in its current version doesn't support method level validation
(see its Appendix C). At the moment we don't support anything expect these
two annotations. We think that it's better to wait for JSR-303.
The class is thread-safe.
Constructor and Description |
---|
MethodValidator() |
Modifier and Type | Method and Description |
---|---|
void |
after(org.aspectj.lang.JoinPoint point,
Object result)
Validate method response.
|
void |
beforeCtor(org.aspectj.lang.JoinPoint point)
Validate arguments of constructor.
|
void |
beforeMethod(org.aspectj.lang.JoinPoint point)
Validate arguments of a method.
|
public void beforeMethod(org.aspectj.lang.JoinPoint point)
Try NOT to change the signature of this method, in order to keep it backward compatible.
point
- Join pointpublic void beforeCtor(org.aspectj.lang.JoinPoint point)
Try NOT to change the signature of this method, in order to keep it backward compatible.
point
- Join pointpublic void after(org.aspectj.lang.JoinPoint point, Object result)
Try NOT to change the signature of this method, in order to keep it backward compatible.
point
- Join pointresult
- Result of the methodCopyright © 2012-2013 jcabi.com. All Rights Reserved.