Comment #9 on issue 187 by bruno.me...@visagio.com: All enhanced classes should implement a marker interface
http://code.google.com/p/google-guice/issues/detail?id=187

I also miss this feature a lot, and I don't see any problem in inserting a new interface. I'm using Guice now to replace a library internally developed and we have such a mark interface, called EnhancedClass. We do the following:

                Enhancer enhancer = new Enhancer();
                enhancer.setSuperclass(baseClass);
                enhancer.setInterfaces(new Class[]{EnhancedClass.class});


That interface doesn't do anything and it encourages users to use instanceof.

I don't see any reason to avoid the instanceof operator, could you explain more on this?

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to