Comment by mccu...@gmail.com:

@bellszhu you can't call Provider.get() until after the injector is created. You either need to store the Provider in WeekBlocker and call get() when method interception occurs (ie. once the injector is up and running), or use requestInjection with a Calendar field/setter.

For more information:
http://code.google.com/p/google-guice/wiki/AOP

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


Reply via email to