actor: allow seamless access to untyped extensions given typed ActorSystem (#28294)
* actor: allow seamless access to untyped extensions given typed ActorSystem * add overrides with concrete type for Java API everywhere
This commit is contained in:
parent
2c96a57d89
commit
702b6a7f41
70 changed files with 192 additions and 49 deletions
|
|
@ -5,7 +5,9 @@
|
|||
package akka.remote
|
||||
|
||||
import java.util.concurrent.ThreadLocalRandom
|
||||
|
||||
import akka.actor.ActorSystem
|
||||
import akka.actor.ClassicActorSystemProvider
|
||||
import akka.actor.ExtendedActorSystem
|
||||
import akka.actor.Extension
|
||||
import akka.actor.ExtensionId
|
||||
|
|
@ -21,6 +23,7 @@ import akka.actor.ExtensionIdProvider
|
|||
*/
|
||||
object AddressUidExtension extends ExtensionId[AddressUidExtension] with ExtensionIdProvider {
|
||||
override def get(system: ActorSystem): AddressUidExtension = super.get(system)
|
||||
override def get(system: ClassicActorSystemProvider): AddressUidExtension = super.get(system)
|
||||
|
||||
override def lookup = AddressUidExtension
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue