com.ebmwebsourcing.commons.aop
Class CheckArgumentsNotNullInterceptor

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.support.StaticMethodMatcherPointcut
          extended by org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
              extended by com.ebmwebsourcing.commons.aop.AdvisorInterceptor
                  extended by com.ebmwebsourcing.commons.aop.CheckArgumentsNotNullInterceptor
All Implemented Interfaces:
java.io.Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.aop.Advisor, org.springframework.aop.MethodMatcher, org.springframework.aop.Pointcut, org.springframework.aop.PointcutAdvisor, org.springframework.core.Ordered

public class CheckArgumentsNotNullInterceptor
extends AdvisorInterceptor

Author:
mcarpentier Throw an exception if one of the annotated method arguments is null
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ebmwebsourcing.commons.aop.AdvisorInterceptor
annotationTarget, annotationType, logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
CheckArgumentsNotNullInterceptor()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation method)
           
 
Methods inherited from class com.ebmwebsourcing.commons.aop.AdvisorInterceptor
matches, setAnnotation
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrder
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckArgumentsNotNullInterceptor

public CheckArgumentsNotNullInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation method)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Specified by:
invoke in class AdvisorInterceptor
Throws:
java.lang.Throwable


Copyright © 2008 eBM WebSourcing. All Rights Reserved.