frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Support @Inject inheritence #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
public interface Cache {
  public void setMemory(long bytes);
  @Inject public void setMemory(@Named("memorySize") String size);
}

This doesn't work unless I move the annoation to the implementation class. 

Original issue reported on code.google.com by chandra....@gmail.com on 16 Mar 2007 at 8:54

GoogleCodeExporter commented 9 years ago
Can you please explain why you believe this should be supported?  It's hard to 
make a
decision without that.

Original comment by kevin...@gmail.com on 16 Mar 2007 at 10:22

GoogleCodeExporter commented 9 years ago
In the absence of compelling new information, this doesn't make sense to us.  An
interface is a contract and a contract says what information it needs; not where
you're supposed to get the information from.  That's the province of impl code.

Original comment by kevin...@gmail.com on 19 Mar 2007 at 6:28