org.springframework.transaction.interceptor
Class TransactionAttributeSourcePointcut

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.support.StaticMethodMatcherPointcut
          extended by org.springframework.transaction.interceptor.TransactionAttributeSourcePointcut
All Implemented Interfaces:
java.io.Serializable, MethodMatcher, Pointcut

abstract class TransactionAttributeSourcePointcut
extends StaticMethodMatcherPointcut
implements java.io.Serializable

Inner class that implements a Pointcut that matches if the underlying TransactionAttributeSource has an attribute for a given method.

Since:
2.5.5
Author:
Juergen Hoeller

Field Summary
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
TransactionAttributeSourcePointcut()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
protected abstract  TransactionAttributeSource getTransactionAttributeSource()
          Obtain the underlying TransactionAttributeSource (may be null).
 int hashCode()
           
 boolean matches(java.lang.reflect.Method method, java.lang.Class targetClass)
          Perform static checking whether the given method matches.
 java.lang.String toString()
           
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionAttributeSourcePointcut

TransactionAttributeSourcePointcut()
Method Detail

matches

public boolean matches(java.lang.reflect.Method method,
                       java.lang.Class targetClass)
Description copied from interface: MethodMatcher
Perform static checking whether the given method matches. If this returns false or if the MethodMatcher.isRuntime() method returns false, no runtime check (i.e. no. MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) call) will be made.

Specified by:
matches in interface MethodMatcher
Parameters:
method - the candidate method
targetClass - the target class (may be null, in which case the candidate class must be taken to be the method's declaring class)
Returns:
whether or not this method matches statically

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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

getTransactionAttributeSource

protected abstract TransactionAttributeSource getTransactionAttributeSource()
Obtain the underlying TransactionAttributeSource (may be null). To be implemented by subclasses.