Restore original MethodMapTransactionAttributeSource matching rules
Issue: SPR-16733
This commit is contained in:
@@ -32,7 +32,6 @@ import org.springframework.util.Assert;
|
|||||||
import org.springframework.util.ClassUtils;
|
import org.springframework.util.ClassUtils;
|
||||||
import org.springframework.util.ObjectUtils;
|
import org.springframework.util.ObjectUtils;
|
||||||
import org.springframework.util.PatternMatchUtils;
|
import org.springframework.util.PatternMatchUtils;
|
||||||
import org.springframework.util.ReflectionUtils;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple {@link TransactionAttributeSource} implementation that
|
* Simple {@link TransactionAttributeSource} implementation that
|
||||||
@@ -145,7 +144,7 @@ public class MethodMapTransactionAttributeSource
|
|||||||
Assert.notNull(mappedName, "Mapped name must not be null");
|
Assert.notNull(mappedName, "Mapped name must not be null");
|
||||||
String name = clazz.getName() + '.' + mappedName;
|
String name = clazz.getName() + '.' + mappedName;
|
||||||
|
|
||||||
Method[] methods = ReflectionUtils.getAllDeclaredMethods(clazz);
|
Method[] methods = clazz.getDeclaredMethods();
|
||||||
List<Method> matchingMethods = new ArrayList<>();
|
List<Method> matchingMethods = new ArrayList<>();
|
||||||
for (Method method : methods) {
|
for (Method method : methods) {
|
||||||
if (isMatch(method.getName(), mappedName)) {
|
if (isMatch(method.getName(), mappedName)) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<property name="transactionAttributeSource">
|
<property name="transactionAttributeSource">
|
||||||
<value>
|
<value>
|
||||||
org.springframework.tests.sample.beans.ITestBean.s*=PROPAGATION_MANDATORY
|
org.springframework.tests.sample.beans.ITestBean.s*=PROPAGATION_MANDATORY
|
||||||
org.springframework.tests.sample.beans.ITestBean.setAg*=PROPAGATION_REQUIRED
|
org.springframework.tests.sample.beans.AgeHolder.setAg*=PROPAGATION_REQUIRED
|
||||||
org.springframework.tests.sample.beans.ITestBean.set*= PROPAGATION_SUPPORTS , readOnly
|
org.springframework.tests.sample.beans.ITestBean.set*= PROPAGATION_SUPPORTS , readOnly
|
||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user