Creating TypedProps and implementing support for wrapping an arbitrary ActorRef as a TypedActor

This commit is contained in:
Viktor Klang 2012-01-16 14:11:29 +01:00
parent 0470f5f9fd
commit de151617f2
11 changed files with 239 additions and 161 deletions

View file

@ -194,11 +194,9 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
val props3 = Props(new MyActor)
val props4 = Props(
creator = { () new MyActor },
dispatcher = "my-dispatcher",
timeout = Timeout(100))
dispatcher = "my-dispatcher")
val props5 = props1.withCreator(new MyActor)
val props6 = props5.withDispatcher("my-dispatcher")
val props7 = props6.withTimeout(Timeout(100))
//#creating-props-config
}