After digging into the code, I see that `bindActor` makes a proxy that
simply packages up calls into message objects and then sends them to
the queue of the associated ActorThread (meaning the ActorThread is
responsible for synchronization, not the proxies). I guess this means
that it should work if you bind an actor multiple times, as long as
you always bind it to the same thread.
So I suppose I could pass my DefaultService an ActorThread and let him
create an ActorRef to himself. This feels ugly, and also is
potentially error-prone since you have to make sure that you never
bind the same actor to multiple threads at once. But I'll give it a
try.
If I don't like how that turns out, I'm thinking I might try putting
together a patch that would store the currently-executing ActorRef in
thread-local storage and make it accessible as `static Actors.self()`
or something like that.
Cheers,
--Aaron V.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Jumi: common test runner for the JVM" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
jumi-test-runn...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
--Aaron V.
[
http://github.com/avh4 ]