From da29f51e83e2ea4ae41bdf43eb90cffb0a8dc574 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Wed, 6 Apr 2011 12:42:02 +0200 Subject: [PATCH] Deprecating the spawn* methods --- akka-actor/src/main/scala/akka/actor/ActorRef.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/akka-actor/src/main/scala/akka/actor/ActorRef.scala b/akka-actor/src/main/scala/akka/actor/ActorRef.scala index 9358d8ea40..5619bbc7e5 100644 --- a/akka-actor/src/main/scala/akka/actor/ActorRef.scala +++ b/akka-actor/src/main/scala/akka/actor/ActorRef.scala @@ -450,6 +450,7 @@ trait ActorRef extends ActorRefShared with java.lang.Comparable[ActorRef] { scal *

* To be invoked from within the actor itself. */ + @deprecated("Will be removed after 1.1, use Actor.actorOf instead") def spawn(clazz: Class[_ <: Actor]): ActorRef /** @@ -457,6 +458,7 @@ trait ActorRef extends ActorRefShared with java.lang.Comparable[ActorRef] { scal *

* To be invoked from within the actor itself. */ + @deprecated("Will be removed after 1.1, client managed actors will be removed") def spawnRemote(clazz: Class[_ <: Actor], hostname: String, port: Int, timeout: Long): ActorRef /** @@ -464,6 +466,7 @@ trait ActorRef extends ActorRefShared with java.lang.Comparable[ActorRef] { scal *

* To be invoked from within the actor itself. */ + @deprecated("Will be removed after 1.1, use use Actor.remote.actorOf instead and then link on success") def spawnLink(clazz: Class[_ <: Actor]): ActorRef /** @@ -471,6 +474,7 @@ trait ActorRef extends ActorRefShared with java.lang.Comparable[ActorRef] { scal *

* To be invoked from within the actor itself. */ + @deprecated("Will be removed after 1.1, client managed actors will be removed") def spawnLinkRemote(clazz: Class[_ <: Actor], hostname: String, port: Int, timeout: Long): ActorRef /**