Move hotswap stack into Actor trait. See #1717

This commit is contained in:
Patrik Nordwall 2012-01-30 13:27:48 +01:00
parent c1178c9b1a
commit d12d56a1ae
6 changed files with 78 additions and 23 deletions

View file

@ -41,9 +41,8 @@ class TestActorRef[T <: Actor](
ref: InternalActorRef,
props: Props,
supervisor: InternalActorRef,
receiveTimeout: Option[Duration],
hotswap: Stack[PartialFunction[Any, Unit]]): ActorCell =
new ActorCell(system, ref, props, supervisor, receiveTimeout, hotswap) {
receiveTimeout: Option[Duration]): ActorCell =
new ActorCell(system, ref, props, supervisor, receiveTimeout) {
override def autoReceiveMessage(msg: Envelope) {
msg.message match {
case InternalGetActor sender ! actor