Hi,
It is possible to perform injections in modules.
Say in:
class Mod extends AbstractModule{
@Inject
MyClass myclass;
....
//use myclass in "this" assuming that Guice would create a new
instance for it and inject it to myclass
}
I kind of assumed that Guice would Inject myclass (run a default
constructor of MyClass) when I created an injector from Mod, but it
did not..
Any help would be appreciated!
--
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.