Hi Colin:

I'm putting together a little article about designing what I believe to be 
good Guice binding architecture.  It makes heavy use of Gimlet's 
LegProvider for solving the robot legs problem.  I'll probably ask you to 
review it if you don't mind before I post it.

In the meantime, I'm now using code like this to make my bindings more 
readable:

   private static final Key<Boolean> TRUE_KEY = 
getUniqueKey(Dashboard.class);

Where getUniqueKey is defined inside AbstractModuleWithBindingHelpers:

   protected <T> Key<T> getUniqueKey(Class<T> superClass) {
      Key<T> key = 
       Key.get(superClass, Names.named(UUID.randomUUID().toString()));
      return key;
   }


-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/CqHe6A5yH6cJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to