I need to implement a pub / subsystem as part of a domain model. I was thinking about using Guava EventBus, but I would like to use interfaces and adapters so that my domain model is not aware of such implementation details. Unfortunately, using EventBus annotations for subscriptions throws a monkey clue on this idea.
Is there a way to subscribe to a handler without using the @Subscribe annotation? Looking at the docs doesn't seem to be, but maybe there is something that I donβt see.
Thank!
source
share