google / google/guice

[RFE] requireBinding() to perform additional check

Open
#456 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.