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:
Serializable, Advisor, MethodMatcher, Pointcut, PointcutAdvisor, Ordered

public class JeeInterceptorPointcutAdvisor
extends 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
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
JeeInterceptorPointcutAdvisor(Method targetMethod, JeeInterceptorInterceptor advice, DeploymentUnitMetadata deploymentUnitMetadata, Map<Object,InterceptionMetadata.InterceptorExclusion> exclusion, Set<Object> interceptorOrderObject)
           
 
Method Summary
 JeeInterceptorInterceptor getAdvice()
          Return the typed advice associated with this interceptor.
protected  boolean isExcluded(Method method, Class targetClass)
           
 boolean matches(Method method, Class targetClass)
           
 void setBeanControlInterfaceAndMethods(Class beanControlInterface, Set<Method> beanControlInterfaceMethods)
           
 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(Method targetMethod,
                                     JeeInterceptorInterceptor advice,
                                     DeploymentUnitMetadata deploymentUnitMetadata,
                                     Map<Object,InterceptionMetadata.InterceptorExclusion> exclusion,
                                     Set<Object> interceptorOrderObject)
Parameters:
targetMethod - matching method. If this is null, will always match
advice - JeeInterceptor
Method Detail

setBeanControlInterfaceAndMethods

public void setBeanControlInterfaceAndMethods(Class beanControlInterface,
                                              Set<Method> beanControlInterfaceMethods)

matches

public boolean matches(Method method,
                       Class targetClass)

isExcluded

protected boolean isExcluded(Method method,
                             Class targetClass)

getAdvice

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

Specified by:
getAdvice in interface Advisor
Overrides:
getAdvice in class StaticMethodMatcherPointcutAdvisor

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007 Interface21. All Rights Reserved.