[RFE] requireBinding() to perform additional check
Open
imported
Priority-Low
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 1.7k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
_From [ogregoire](https://code.google.com/u/ogregoire/) on January 01, 2010 12:51:07_
An interesting feature would be for requireBinding() to be extended so that
it returns an BindingRequirement, which checks if the class is well
annotated or is well in the right scope.
Typical usage:
requireBinding(MyClass.class).annotatedWith(MyAnnotation.class).in(Singleton.class);
It would add an error for each failure.
_Original issue: http://code.google.com/p/google-guice/issues/detail?id=456_
Contributor guide
Assessment
This issue has not been assessed yet.