org.springframework.jee.intercept
Class JeeInterceptorPointcutAdvisor

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 org.springframework.jee.intercept.JeeInterceptorPointcutAdvisor
All Implemented Interfaces:
java.io.Serializable, org.springframework.aop.Advisor, org.springframework.aop.MethodMatcher, org.springframework.aop.Pointcut, org.springframework.aop.PointcutAdvisor, org.springframework.core.Ordered

public class JeeInterceptorPointcutAdvisor
extends org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor

Spring AOP pointcut that can be used for a method-targeted EJB3 style interception

Author:
Rod Johnson
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
LOWEST_PRECEDENCE
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
JeeInterceptorPointcutAdvisor(java.lang.reflect.Method targetMethod, JeeInterceptorInterceptor advice, DeploymentUnitMetadata deploymentUnitMetadata, java.util.Map<java.lang.reflect.Method,InterceptionMetadata.InterceptorExclusion> exclusion, java.util.Set<java.lang.Object> interceptorOrderObject)
           
 
Method Summary
 JeeInterceptorInterceptor getAdvice()
          Return the typed advice associated with this interceptor.
protected  boolean isExcluded(java.lang.reflect.Method method)
           
 boolean matches(java.lang.reflect.Method method, java.lang.Class targetClass)
           
 java.lang.String toString()
           
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
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, wait, wait, wait
 

Constructor Detail

JeeInterceptorPointcutAdvisor

public JeeInterceptorPointcutAdvisor(java.lang.reflect.Method targetMethod,
                                     JeeInterceptorInterceptor advice,
                                     DeploymentUnitMetadata deploymentUnitMetadata,
                                     java.util.Map<java.lang.reflect.Method,InterceptionMetadata.InterceptorExclusion> exclusion,
                                     java.util.Set<java.lang.Object> interceptorOrderObject)
Parameters:
targetMethod - matching method. If this is null, will always match
advice - JeeInterceptor
Method Detail

matches

public boolean matches(java.lang.reflect.Method method,
                       java.lang.Class targetClass)

isExcluded

protected boolean isExcluded(java.lang.reflect.Method method)

getAdvice

public JeeInterceptorInterceptor getAdvice()
Return the typed advice associated with this interceptor.

Specified by:
getAdvice in interface org.springframework.aop.Advisor
Overrides:
getAdvice in class org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2006 Interface21. All Rights Reserved.