google / google/guice

Mirror (Class)Matchers to TypeLiteralMatchers

Open
#458 0 comments 0 reactions 0 assignees View on GitHub
imported
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 05, 2010 05:11:55_

Hi,

The matchers are essentially used for two scenarios: method interception
and listeners binding.

However the context of the two scenarios is completely different: the first
uses essentially the reflection API, where the second the TypeLiteral API.
The utility class Matchers takes care only of the first one (by returning
only Matcher<Class> or Matcher<Method> or Matcher<AnnotatedElement>),
making it inappropriate to use it for the listeners binding API.

So I thought it might be interesting to mirror the Matchers methods into
TypeLiteralMatchers. Therefore we don't have to rewrite methods that
already exist, or to use tricks for each project.

_Original issue: http://code.google.com/p/google-guice/issues/detail?id=458_

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.