Skip to content

Commit a8fb551

Browse files
committed
Allow for overriding of computeTransactionAttribute
Issue: SPR-13246
1 parent 9de824b commit a8fb551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-tx/src/main/java/org/springframework/transaction/interceptor/AbstractFallbackTransactionAttributeSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -131,7 +131,7 @@ protected Object getCacheKey(Method method, Class<?> targetClass) {
131131
* {@link #getTransactionAttribute} is effectively a caching decorator for this method.
132132
* @see #getTransactionAttribute
133133
*/
134-
private TransactionAttribute computeTransactionAttribute(Method method, Class<?> targetClass) {
134+
protected TransactionAttribute computeTransactionAttribute(Method method, Class<?> targetClass) {
135135
// Don't allow no-public methods as required.
136136
if (allowPublicMethodsOnly() && !Modifier.isPublic(method.getModifiers())) {
137137
return null;

0 commit comments

Comments
 (0)