-
Notifications
You must be signed in to change notification settings - Fork 38.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename TransactionSynchronizationManager#currentTransaction to something more meaningful #23086
Comments
Tentatively slated for 5.2 M3 |
To add a bit of background: The reactive Renaming that method to |
A big +1 for |
That sounds better to me as well. So, unless someone objects, I'll go ahead and make the proposed name change and Javadoc improvement. |
@sbrannen shouldn't we keep the existing method in a deprecated fashion at least for one feature release? |
@snicoll this just affects the reactive transaction support, so it's new API in 5.2 anyway. |
This is a breaking change for spring-data-r2dbc v1.0 M2 (see spring-projects/spring-data-r2dbc#154) and spring-fu's latest version. |
As @jhoeller already pointed out in #23086 (comment), the API in question is new in Spring Framework 5.2 and is therefore allowed to be renamed before the 5.2 GA release. |
I am working currently on implementing reactive Transactions with our new Neo4j reactive driver and need to access the reactive transaction synchronisation manager through
The JavaDoc says "…Return the TransactionSynchronizationManager of the current transaction…"
I understand that
TransactionSynchronizationManager
is merely a wrapper around theTransactionContext
.Neither the manager nor the context are the transaction itself and therefor I think that the
currentTransaction()
would benefit from another name, likecurrent TransactionSynchronizationManager()
orcurrentTransactionContext()
; it's intentions would be clearer.cc @mp911de
The text was updated successfully, but these errors were encountered: