Improvements based on feedback. See #1458

This commit is contained in:
Patrik Nordwall 2011-12-21 19:02:06 +01:00
parent 1bce4c39c3
commit df260f8939
18 changed files with 113 additions and 103 deletions

View file

@ -21,7 +21,7 @@ object Props {
import FaultHandlingStrategy._
final val defaultCreator: () Actor = () throw new UnsupportedOperationException("No actor creator specified!")
final val defaultDispatcherKey: String = null
final val defaultDispatcherId: String = null
final val defaultTimeout: Timeout = Timeout(Duration.MinusInf)
final val defaultDecider: Decider = {
case _: ActorInitializationException Stop
@ -125,7 +125,7 @@ object Props {
*/
case class Props(
creator: () Actor = Props.defaultCreator,
dispatcher: String = Props.defaultDispatcherKey,
dispatcher: String = Props.defaultDispatcherId,
timeout: Timeout = Props.defaultTimeout,
faultHandler: FaultHandlingStrategy = Props.defaultFaultHandler,
routerConfig: RouterConfig = Props.defaultRoutedProps) {
@ -135,7 +135,7 @@ case class Props(
*/
def this() = this(
creator = Props.defaultCreator,
dispatcher = Props.defaultDispatcherKey,
dispatcher = Props.defaultDispatcherId,
timeout = Props.defaultTimeout,
faultHandler = Props.defaultFaultHandler)
@ -144,7 +144,7 @@ case class Props(
*/
def this(factory: UntypedActorFactory) = this(
creator = () factory.create(),
dispatcher = Props.defaultDispatcherKey,
dispatcher = Props.defaultDispatcherId,
timeout = Props.defaultTimeout,
faultHandler = Props.defaultFaultHandler)
@ -153,7 +153,7 @@ case class Props(
*/
def this(actorClass: Class[_ <: Actor]) = this(
creator = () actorClass.newInstance,
dispatcher = Props.defaultDispatcherKey,
dispatcher = Props.defaultDispatcherId,
timeout = Props.defaultTimeout,
faultHandler = Props.defaultFaultHandler,
routerConfig = Props.defaultRoutedProps)