incorporate review comments

- add two missing @volatiles
- add quite some comments
- refactor provider.actorOf to always take a path for the child, not
  only a name
This commit is contained in:
Roland 2011-12-10 20:32:23 +01:00
parent d4a764cfd9
commit 09aadcb60d
4 changed files with 77 additions and 41 deletions

View file

@ -162,7 +162,7 @@ class RemoteSystemDaemon(remote: Remote, _path: ActorPath, _parent: InternalActo
val subpath = elems.drop(1)
val path = remote.remoteDaemon.path / subpath
val supervisor = remote.system.actorFor(message.getSupervisor).asInstanceOf[InternalActorRef]
val actor = new LocalActorRef(remote.system, Props(creator = actorFactory), supervisor, path, true)
val actor = remote.system.provider.actorOf(remote.system, Props(creator = actorFactory), supervisor, path, true)
addChild(subpath.mkString("/"), actor)
remote.system.deathWatch.subscribe(this, actor)
case _