org.jboss.kernel.api.dependency
Interface Matcher

All Known Implementing Classes:
AnnotationsMatcher, ClassMatcher, IntervalMatcher, NonNullMatcher, NumberMatcher, RegexpMatcher, StringMatcher

public interface Matcher

Matcher. Match this instance against any object.

Author:
Ales Justin

Method Summary
 boolean match(Object other)
          Do we match this object other param.
 boolean needExactMatch()
          Do we need an exact match.
 

Method Detail

match

boolean match(Object other)
Do we match this object other param.

Parameters:
other - the object to match
Returns:
true if we match the other param, false otherwise

needExactMatch

boolean needExactMatch()
Do we need an exact match. No match or single match is acceptable.

Returns:
true if matcher accepts only exact matches


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