Hello,

I have a several modules that are independent of each other with the 
exception of binding objects that require an EventBus.  Each module has a 
bind() method to the Eventbus.class which works great for unit testing each 
module but causes problems when I wire all the modules up together due to 
the multiple bindings in multiple modules.  I can easily remove the 
individual bindings in the modules themselves and for my unit tests just 
create an anonymous AbstractModule to bind the EventBus for unit testing.  
I would rather not go through all my unit tests and add this though, so I 
was wondering if there was a better or easier way to wire up modules that 
share a common class.  In my head I want to use something like an #ifndef 
but not sure if this is even a good approach.

Sorry for the banalness of this question, but I am fairly new to guice and 
still trying to sort out the best way/place to do things.

TIA.

- chooks

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to