Status: New
Owner: ----
New issue 412 by gili.tzabari: Context-sensitive Providers
http://code.google.com/p/google-guice/issues/detail?id=412
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/8f55d2eaa1a334df/384a2ec51b58e112?#384a2ec51b58e112
--
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
-~----------~----~----~----~------~----~------~--~---