xiaodududu / google-guice

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

[RFE] Optionally allow requireBinding() to be mandatory #491

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(This is an RFE, but I only seem to be able to create defect reports)

It would be nice to force requireBinding() calls to be mandatory as a form of 
documentation.

For example, if a binding in module A depends upon a binding in module B, it 
would be nice to fail with an error if module A doesn't explicitly 
requireBinding() - even if the binding is present and injection would otherwise 
succeed.

This would force the use of requireBinding() which is very useful documentation.

Original issue reported on code.google.com by mail4da...@gmail.com on 10 Jun 2010 at 9:25