FYI for those of you that hadn't already read the Roboguice group
thread<https://groups.google.com/d/topic/roboguice/BPcFafTsW9c/discussion>,
in order to support static injection, module bindings are executed twice
and double the startup binding times. Since I don't use static injection
and can't imagine why anybody would, I commented out the below loop
RoboGuice.setBaseApplicationInjector, rebuilt RoboGuice, and cut my startup
time almost in half.
// Do a little rewriting on the modules first to
// add static resource injection
/* for(Element element : Elements.getElements(modules)) {
element.acceptVisitor(new DefaultElementVisitor<Void>() {
@Override
public Void visit(StaticInjectionRequest element) {
getResourceListener(application).requestStaticInjection(element.getType());
return null;
}
});
} */
--
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/-/VEr4DALZjUAJ.
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.