Status: New
Owner: ----

New issue 440 by [email protected]: [RFE] Extend the Logger "special  
case" to any class
http://code.google.com/p/google-guice/issues/detail?id=440

I think that in the SPI, it should be possible to extend the "special case"
of the Logger so that any injected member can know the injectee in which it
will be injected.

For instance resources that should be injected would somewhere know how to
be fetched.

Currently, the only way of doing this is such as this:


private final Resources resources;
@Inject
public Injectee(ResourceManager resourceManager) {
   this.resources = resourceManager.getResources(getClass());
}


Not very recommended when I read the wiki's best practices.

Naming it isn't recommended since it would mean that we can't really
automatize the process, but would rather create the resource and assign it
to the name.

The Logger exception doesn't seem to be extremely long when I see the code
of InjectorShell.bindLogger(), so could it be a pain to develop it? But
maybe it would be a pain to find a useful way of doing this? I don't know.

If I get leads where to start, I might be able to develop an extension
doing this.

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