com.ebmwebsourcing.commons.aop
Class AdvisorInterceptor
java.lang.Object
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
com.ebmwebsourcing.commons.aop.AdvisorInterceptor
- 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
- Direct Known Subclasses:
- BasicMethodTraceInterceptor, CheckArgumentsNotNullInterceptor, MethodDurationInterceptor
public abstract class AdvisorInterceptor
- extends org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
- implements org.aopalliance.intercept.MethodInterceptor
- Author:
- mcarpentier
Used to match and set method with the rights annotation
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.annotation.Annotation |
annotationTarget
|
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType
|
protected org.apache.log4j.Logger |
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 |
|
Method Summary |
abstract java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation arg0)
|
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class targetClass)
|
void |
setAnnotation(java.lang.String annotation)
|
| 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 |
logger
protected org.apache.log4j.Logger logger
annotationType
protected java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
annotationTarget
protected java.lang.annotation.Annotation annotationTarget
AdvisorInterceptor
public AdvisorInterceptor()
invoke
public abstract java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation arg0)
throws java.lang.Throwable
- Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Throwable
matches
public boolean matches(java.lang.reflect.Method method,
java.lang.Class targetClass)
- Specified by:
matches in interface org.springframework.aop.MethodMatcher
setAnnotation
public void setAnnotation(java.lang.String annotation)
Copyright © 2008 eBM WebSourcing. All Rights Reserved.