Some Providers need an injection context (such as what Class the object is
being injected into) in order to satisfy the request. For example,
constructor-injected Logger instances need to know the class being injected
into, as follows:
@Provider Logger providerLogger(InjectionContext context)
{
return Logger.getLogger(context.getInjectee().getClass().getName());
}
Here is the related discussion thread:
http://groups.google.com/group/google-guice/browse_thread/thread/8f55d2eaa1a334d
f/384a2ec51b58e112?#384a2ec51b58e112
Original issue reported on code.google.com by gili.tza...@gmail.com on 14 Aug 2009 at 2:00
Original issue reported on code.google.com by
gili.tza...@gmail.com
on 14 Aug 2009 at 2:00