+act #3900 make systemActorOf available to Extensions

This commit is contained in:
Roland Kuhn 2014-03-03 12:00:25 +01:00
parent 8396e923cf
commit b5eeb08fde
11 changed files with 22 additions and 18 deletions

View file

@ -157,7 +157,7 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
// create supervisor for daemons under path "/system/cluster"
private val clusterDaemons: ActorRef = {
system.asInstanceOf[ActorSystemImpl].systemActorOf(Props(classOf[ClusterDaemon], settings).
system.systemActorOf(Props(classOf[ClusterDaemon], settings).
withDispatcher(UseDispatcher).withDeploy(Deploy.local), name = "cluster")
}