Hi Group,

for my study project, I use Guice to apply Dependency Injection in a 
component-oriented system.
For example, I have following binding set in the module:

bind(IModule.class).to(Implementation.class);


Ok, now there are these code snippets:

...
Injector injector = Guice.createInjector(new MyModule());
...

... somewhere else....
Class foo = ...; (esp. foo is now set to Implementation.class)
// Is foo explicit described in the module description? (Which in this 
context would mean it is an inplementation of a module interface.)
...

I want to know if the class foo is defined in any module used by the 
injector. Is that possible in Guice?
My ambition is to use this information in a pointcut in AspectJ, 
although I think this way would have a bad performance. I've seen the 
getBinding(Class class)  method, but I can not see a possibilty how to 
deduce from the result if this class was defined in the module description.

Best Regards,
Michael Woelm

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to