spring-session
spring-session copied to clipboard
Consider making Session implementations public
Expected Behavior
It should be possible to extend or delegate to those implementations.
Current Behavior
-
SessionRepositoryimplementations are open for extension but cannot be extended, e.g. there is no way to overridecreateSessionorsavemethods. -
This issue mentions that the
MongoSessionis an internal implementation detail of theMongoIndexedSessionRepositoryimplementation. That actually is not 100% true sinceMongoSessionis returned by the API. - The
AbstractMongoSessionConverteris meant to be extended accordingly to its javadoc, but it is not possible since its abstract methods work withMongoSessionand that implementation is package-private - Since each implementation is part of the public API, it is strange that they are not public
Context
- https://github.com/spring-projects/spring-session/issues/2217
- https://github.com/spring-projects/spring-session/issues/2179
#2217 mentions this enhancement would be in 3.3 scheduled for this May, are we still on track to hit this goal?