| java.lang.Object org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource
Field Summary | |
final protected static Log | logger Logger available to subclasses. |
logger | final protected static Log logger(Code) | | Logger available to subclasses.
Static for optimal serialization.
|
addTransactionalMethod | public void addTransactionalMethod(String methodName, TransactionAttribute attr)(Code) | | Add an attribute for a transactional method.
Method names can be exact matches, or of the pattern "xxx*",
"*xxx" or "*xxx*" for matching multiple methods.
Parameters: methodName - the name of the method Parameters: attr - attribute associated with the method |
hashCode | public int hashCode()(Code) | | |
isMatch | protected boolean isMatch(String methodName, String mappedName)(Code) | | Return if the given method name matches the mapped name.
The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
as well as direct equality. Can be overridden in subclasses.
Parameters: methodName - the method name of the class Parameters: mappedName - the name in the descriptor if the names match See Also: org.springframework.util.PatternMatchUtils.simpleMatch(StringString) |
setNameMap | public void setNameMap(Map nameMap)(Code) | | Set a name/attribute map, consisting of method names
(e.g. "myMethod") and TransactionAttribute instances
(or Strings to be converted to TransactionAttribute instances).
See Also: TransactionAttribute See Also: TransactionAttributeEditor |
|
|