org.jboss.kernel.api.dependency
Class ClassMatcher<T>

java.lang.Object
  extended by org.jboss.kernel.api.dependency.NonNullMatcher
      extended by org.jboss.kernel.api.dependency.ClassMatcher<T>
Type Parameters:
T - the class to match
All Implemented Interfaces:
Matcher
Direct Known Subclasses:
AnnotationsMatcher, NumberMatcher, StringMatcher

public abstract class ClassMatcher<T>
extends NonNullMatcher

Match the class type.

Author:
Ales Justin

Constructor Summary
protected ClassMatcher(Class<T> clazz)
           
 
Method Summary
protected  boolean internalMatch(Object other)
          Do internal match.
protected abstract  boolean matchByType(T other)
          Match by type.
 
Methods inherited from class org.jboss.kernel.api.dependency.NonNullMatcher
match, needExactMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMatcher

protected ClassMatcher(Class<T> clazz)
Method Detail

internalMatch

protected boolean internalMatch(Object other)
Description copied from class: NonNullMatcher
Do internal match.

Specified by:
internalMatch in class NonNullMatcher
Parameters:
other - the other param to match
Returns:
true if matched, false otherwise

matchByType

protected abstract boolean matchByType(T other)
Match by type.

Parameters:
other - the T para to match
Returns:
true if matched, false otherwise


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.