-
Notifications
You must be signed in to change notification settings - Fork 1.1k
String key should be Object, cause removeSessionFactory and getSessionFactory works with Object #3169
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
Comments
Wow! That's good catch! Indeed this is a bug: all other As a workaround you can fully rely on the Feel free to provide a contribution: https://github.com/spring-projects/spring-integration/blob/master/CONTRIBUTING.adoc Thanks! |
I think for binary backward compatibility we need to deprecate an existing method and introduce a new one. |
…ctory key's type from String to Object All other DefaultSessionFactoryLocator contracts are based on the Object, so this addSessionFactory has to be on Object as well.
…ctory key's type from String to Object All other DefaultSessionFactoryLocator contracts are based on the Object, so this addSessionFactory has to be on Object as well.
…ctory key's type from String to Object All other DefaultSessionFactoryLocator contracts are based on the Object, so this addSessionFactory has to be on Object as well.
…ctory key's type from String to Object All other DefaultSessionFactoryLocator contracts are based on the Object, so this addSessionFactory has to be on Object as well.
Fixes #3169 All other `DefaultSessionFactoryLocator` contracts are based on the `Object`, so this `addSessionFactor`y has to be on `Object` as well. * Add `DefaultSessionFactoryLocator.addSessionFactory(Object key, SessionFactory<F> factory)` * Deprecate existing one based on `String` * Fix tests do no use a deprecated API * Some other code style clean up in the affected classes **Cherry-pick to 5.2.x** (cherry picked from commit edf84a3)
spring-integration/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/DefaultSessionFactoryLocator.java
Line 57 in 509e823
The text was updated successfully, but these errors were encountered: