|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.interceptor.ValidateInterceptor
public class ValidateInterceptor
ValidateInterceptor
intercepts service calls and validate the domain objects passed in.
Constructor Summary | |
---|---|
ValidateInterceptor()
|
Method Summary | |
---|---|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
Validate the arguments to service calls if it is a domain object. |
void |
setDefaultBeanValidator(org.springmodules.commons.validator.DefaultBeanValidator defaultBeanValidator)
Set the validator. |
void |
validate(EpDomain epDomain)
Validate the domain object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateInterceptor()
Method Detail |
---|
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws java.lang.Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
methodInvocation
- the method invocation to be intercepted and validated
java.lang.Throwable
- on errorpublic void setDefaultBeanValidator(org.springmodules.commons.validator.DefaultBeanValidator defaultBeanValidator)
defaultBeanValidator
- the validatorpublic void validate(EpDomain epDomain) throws EpDomainException
epDomain
- the domain object to be validated
EpDomainException
- if there is a problem
java.lang.IllegalArgumentException
- thrown if the validator doesn't support the specified class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |