Replaced akka.config with new configuration utility. See #1141 and see #1342

* All default values removed from code and loaded from akka-actor-reference.conf, located in src/main/resources (included in jar)
* Default test configuration included in AkkaSpec instead of using akka.test.conf, avoids problems when running test (in IDE) and forgetting to use -Dakka.mode=test.
* System.properties used first, if availble
* Next step will be to split akka-actor-reference.conf in separate -reference for each module
This commit is contained in:
Patrik Nordwall 2011-11-15 11:34:39 +01:00
parent 80d766b07b
commit 4b8f11ea92
137 changed files with 8689 additions and 1411 deletions

View file

@ -8,7 +8,7 @@ import akka.util.duration._
//#imports
import akka.actor.Actor
import akka.event.Logging
import akka.config.Configuration
import com.typesafe.config.Config
//#imports
@ -22,7 +22,7 @@ class MyActor extends Actor {
}
//#my-actor
class ActorDocSpec extends AkkaSpec(Configuration("akka.loglevel" -> "INFO")) {
class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
"creating actor with AkkaSpec.actorOf" in {
//#creating-actorOf