org.jboss.kernel.plugins.annotations.wb
Class AnnotationsMatcher
java.lang.Object
org.jboss.kernel.api.dependency.NonNullMatcher
org.jboss.kernel.api.dependency.ClassMatcher<AnnotationsSupply>
org.jboss.kernel.plugins.annotations.wb.AnnotationsMatcher
- All Implemented Interfaces:
- Serializable, Matcher
public class AnnotationsMatcher
- extends ClassMatcher<AnnotationsSupply>
- implements Serializable
Annotations matcher.
- Author:
- Ales Justin
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationsMatcher
public AnnotationsMatcher(Annotation annotation)
addAnnotation
public void addAnnotation(Annotation annotation)
- Add the annotation.
- Parameters:
annotation
- the annotation
matchByType
protected boolean matchByType(AnnotationsSupply other)
- Description copied from class:
ClassMatcher
- Match by type.
- Specified by:
matchByType
in class ClassMatcher<AnnotationsSupply>
- Parameters:
other
- the T para to match
- Returns:
- true if matched, false otherwise
needExactMatch
public boolean needExactMatch()
- Description copied from interface:
Matcher
- Do we need an exact match.
No match or single match is acceptable.
- Specified by:
needExactMatch
in interface Matcher
- Overrides:
needExactMatch
in class NonNullMatcher
- Returns:
- true if matcher accepts only exact matches
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.