Refactoring: TypedActor now extends Actor and is thereby a full citizen in the Akka actor-land
This commit is contained in:
parent
053006550c
commit
ba0b17f58a
15 changed files with 291 additions and 415 deletions
|
|
@ -5,5 +5,5 @@
|
|||
package sample.rest.java;
|
||||
|
||||
public interface Receiver {
|
||||
SimpleService receive();
|
||||
SimpleService get();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue