Polishing

This commit is contained in:
Juergen Hoeller
2018-08-09 11:59:15 +02:00
parent 8f513f8561
commit 8e571decc1
6 changed files with 65 additions and 67 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,23 +31,23 @@ public class MapTransactionAttributeSource extends AbstractFallbackTransactionAt
private final Map<Object, TransactionAttribute> attributeMap = new HashMap<>();
public void register(Method method, TransactionAttribute txAttr) {
this.attributeMap.put(method, txAttr);
}
public void register(Class<?> clazz, TransactionAttribute txAttr) {
this.attributeMap.put(clazz, txAttr);
}
@Override
protected TransactionAttribute findTransactionAttribute(Method method) {
return this.attributeMap.get(method);
public void register(Method method, TransactionAttribute txAttr) {
this.attributeMap.put(method, txAttr);
}
@Override
protected TransactionAttribute findTransactionAttribute(Class<?> clazz) {
return this.attributeMap.get(clazz);
}
@Override
protected TransactionAttribute findTransactionAttribute(Method method) {
return this.attributeMap.get(method);
}
}