Comment #4 on issue 465 by drew.mclaughlin: Simplify syntax for injecting into an interceptor
http://code.google.com/p/google-guice/issues/detail?id=465

requestInjection simply sets fields and calls methods annotated with @Inject, it does
not setup interception.

Method interception only works on instances that were created by Guice. Interception is done by essentially proxy-wrapping the implementation and returning the proxy. If the instance is created outside Guice then there is no proxy and thus no interception.

As limpbizkit mentioned, not allowing interception of interceptor methods is safe since it eliminates the possibility of infinite interceptor recursion. On the downside it
doesn't allow any Guice-driven interception on interceptors.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
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.

Reply via email to