public interface QualifierMatcher extends com.google.common.base.Predicate<Annotation>, Comparable<QualifierMatcher>, Serializable
QualifierMatcher encapsulates the logic used to determine if a BindRule or ContextElementMatcher match a particular Qualifier. Common qualifier matching rules are:
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Annotation q)
Return true if this matcher matches the given qualifier annotation.
|
int |
getPriority()
Get the priority of this matcher.
|
boolean |
matches(Annotation q)
Return true if this matcher matches the given qualifier annotation.
|
compareTo
boolean matches(@Nullable Annotation q)
Qualifier
. The qualifier will be null if the injection point
being matched did not have a qualifier.q
- The qualifier to matchboolean apply(@Nullable Annotation q)
Qualifier
. The qualifier will be null if the injection point
being matched did not have a qualifier.apply
in interface com.google.common.base.Predicate<Annotation>
q
- The qualifier to matchint getPriority()
Copyright © 2016 GroupLens Research. All rights reserved.