Refactoring: TypedActor now extends Actor and is thereby a full citizen in the Akka actor-land

This commit is contained in:
Jonas Boner 2010-08-17 15:22:00 +02:00
parent 053006550c
commit ba0b17f58a
15 changed files with 291 additions and 415 deletions

View file

@ -5,5 +5,5 @@
package sample.rest.java;
public interface Receiver {
SimpleService receive();
SimpleService get();
}

View file

@ -4,11 +4,10 @@
package sample.rest.java;
import se.scalablesolutions.akka.actor.TypedActorContext;
import se.scalablesolutions.akka.actor.TypedActor;
public class ReceiverImpl extends TypedActor implements Receiver {
public SimpleService receive() {
public SimpleService get() {
return (SimpleService) getContext().getSender();
}
}

View file

@ -6,7 +6,6 @@ package sample.rest.java;
import se.scalablesolutions.akka.actor.TypedActor;
import se.scalablesolutions.akka.actor.TypedTransactor;
import se.scalablesolutions.akka.actor.TypedActorContext;
import se.scalablesolutions.akka.stm.TransactionalMap;
public class SimpleServiceImpl extends TypedTransactor implements SimpleService {