public final class WildcardClassNameMatcher extends Object implements ClassNameMatcher
ClassNameMatcher
that uses simplified regular expressions
provided by org.apache.commons.io.FilenameUtils#wildcardMatch(String, String)
This object is immutable and thread-safe.
This class is extracted from Apache commons-io projectConstructor and Description |
---|
WildcardClassNameMatcher(String pattern)
Constructs an object based on the specified simplified regular expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String className)
Returns
true if the supplied class name matches this object's condition. |
public WildcardClassNameMatcher(String pattern)
pattern
- a FilenameUtils.wildcardMatch(java.lang.String, java.lang.String, org.apache.mina.core.buffer.matcher.IOCase)
pattern.public boolean matches(String className)
ClassNameMatcher
true
if the supplied class name matches this object's condition.matches
in interface ClassNameMatcher
className
- fully qualified class nametrue
if the class name matches this object's conditionCopyright © 2004–2025 Apache MINA Project. All rights reserved.