Value not def for underlying state store (#30748)
* Value not def for underlying state store * Ooops forgot to remove parens * Remove type param * Other type * Fix types * Similar reference wrapper issue * Trailing spaces removed
This commit is contained in:
parent
e0ce825a55
commit
1e05c52c5d
2 changed files with 8 additions and 6 deletions
|
|
@ -9,10 +9,11 @@ import com.typesafe.config.Config
|
|||
|
||||
class PersistenceTestKitReadJournalProvider(system: ExtendedActorSystem, config: Config, configPath: String)
|
||||
extends ReadJournalProvider {
|
||||
|
||||
override def scaladslReadJournal(): scaladsl.PersistenceTestKitReadJournal =
|
||||
private val _scaladslReadJournal =
|
||||
new scaladsl.PersistenceTestKitReadJournal(system, config, configPath)
|
||||
override def scaladslReadJournal(): scaladsl.PersistenceTestKitReadJournal =
|
||||
_scaladslReadJournal
|
||||
|
||||
override def javadslReadJournal(): javadsl.PersistenceTestKitReadJournal =
|
||||
new javadsl.PersistenceTestKitReadJournal(scaladslReadJournal())
|
||||
new javadsl.PersistenceTestKitReadJournal(_scaladslReadJournal)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,9 +14,10 @@ import akka.persistence.testkit.state.javadsl.{
|
|||
}
|
||||
|
||||
class PersistenceTestKitDurableStateStoreProvider(system: ExtendedActorSystem) extends DurableStateStoreProvider {
|
||||
private def _scaladslDurableStateStore[T]() = new PersistenceTestKitDurableStateStore[T](system)
|
||||
override def scaladslDurableStateStore(): DurableStateStore[Any] = _scaladslDurableStateStore[Any]()
|
||||
private val _scaladslDurableStateStore = new PersistenceTestKitDurableStateStore[Any](system)
|
||||
override def scaladslDurableStateStore(): DurableStateStore[Any] = _scaladslDurableStateStore
|
||||
|
||||
override def javadslDurableStateStore(): JDurableStateStore[AnyRef] =
|
||||
new JPersistenceTestKitDurableStateStore[AnyRef](_scaladslDurableStateStore())
|
||||
new JPersistenceTestKitDurableStateStore[AnyRef](
|
||||
_scaladslDurableStateStore.asInstanceOf[PersistenceTestKitDurableStateStore[AnyRef]])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue