Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit fdbfc90

Browse files
committed
helper class to instantiate an in-memory token store in Java
1 parent d55522c commit fdbfc90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/src/main/scala/com/softwaremill/session/RefreshTokenStorage.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,10 @@ trait InMemoryRefreshTokenStorage[T] extends RefreshTokenStorage[T] {
6666
}
6767

6868
def log(msg: String): Unit
69-
}
69+
}
70+
71+
/**
72+
* Can't use the trait above in Java code, hence this wrapper
73+
* http://stackoverflow.com/questions/7637752/using-scala-traits-with-implemented-methods-in-java
74+
*/
75+
abstract class InMemoryRefreshTokenStorageWrapper[T]() extends InMemoryRefreshTokenStorage[T]

0 commit comments

Comments
 (0)