org.jboss.kernel.plugins.annotations.wb
Class AnnotationsMatcher

java.lang.Object
  extended by org.jboss.kernel.api.dependency.NonNullMatcher
      extended by org.jboss.kernel.api.dependency.ClassMatcher<AnnotationsSupply>
          extended by 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

Constructor Summary
AnnotationsMatcher(Annotation annotation)
           
 
Method Summary
 void addAnnotation(Annotation annotation)
          Add the annotation.
protected  boolean matchByType(AnnotationsSupply other)
          Match by type.
 boolean needExactMatch()
          Do we need an exact match.
 
Methods inherited from class org.jboss.kernel.api.dependency.ClassMatcher
internalMatch
 
Methods inherited from class org.jboss.kernel.api.dependency.NonNullMatcher
match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsMatcher

public AnnotationsMatcher(Annotation annotation)
Method Detail

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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.