Reputation: 267
Is there any way of determining what is the implementing class behind an Actor based on an ActorRef
?
I've tried printing myActor.getClass.getName
but that returns "LocalActorRef". What I want to know is the Class that was specified in the actors Props object at actor creation. Is this possible at runtime?
Upvotes: 0
Views: 56
Reputation: 7247
No, there is no way to tell from an ActorRef
what sort of actor it represents.
Upvotes: 2