org.springframework.transaction.interceptor
Class TransactionAttributeSourcePointcut
java.lang.Object
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
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
| Fields inherited from interface org.springframework.aop.Pointcut |
TRUE |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TransactionAttributeSourcePointcut
TransactionAttributeSourcePointcut()
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 methodtargetClass - 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.