Comment #9 on issue 187 by [email protected]: 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 [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-dev?hl=en.