public interface ContextElementMatcher extends Serializable
ContextElementMatcher represents a "pattern" that can match an element within the
dependency context created as a Resolver follows a dependency hierarchy. The
dependency context is an ordered list of satisfactions and the qualifiers of the desires they satisfy.
The first satisfaction is the root satisfaction, a null
satisfaction of type void
.
ContextMatchers can match or apply to these nodes and Qualifier
s
within a dependency context. As an example, the reflection based
ContextElementMatcher matches nodes that are sub-types of the type the matcher was
configured with.
Modifier and Type | Method and Description |
---|---|
MatchElement |
apply(org.apache.commons.lang3.tuple.Pair<Satisfaction,InjectionPoint> n)
Return true if this ContextElementMatcher matches or applies to the given Satisfaction and
Qualifier.
|
MatchElement apply(org.apache.commons.lang3.tuple.Pair<Satisfaction,InjectionPoint> n)
n
- The node and attributes in the current dependency contextfalse
if there is
no match.Copyright © 2016 GroupLens Research. All rights reserved.