@Deprecated public class LegacyWildcardConfigPatternMatcher extends Object implements ConfigPatternMatcher
ConfigPatternMatcher
supports a simplified wildcard matching.
See "Config.md ## Using Wildcard" for details about the syntax.
This matcher represents a "contains" matching to provide backward compatibility. No exception will be thrown if multiple configurations are found (first match is returned).
Please adapt your configuration and use WildcardConfigPatternMatcher
instead.
Constructor and Description |
---|
LegacyWildcardConfigPatternMatcher()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
int |
hashCode()
Deprecated.
|
String |
matches(Iterable<String> configPatterns,
String itemName)
Deprecated.
Returns the best match for an item name out of a list of configuration patterns.
|
boolean |
matches(String pattern,
String itemName)
Deprecated.
This method is public to be accessible by
InstancePermission . |
public LegacyWildcardConfigPatternMatcher()
public String matches(Iterable<String> configPatterns, String itemName)
ConfigPatternMatcher
matches
in interface ConfigPatternMatcher
configPatterns
- list of configuration patternsitemName
- item name to matchnull
if nothing matchespublic boolean matches(String pattern, String itemName)
InstancePermission
.pattern
- configuration pattern to match withitemName
- item name to matchtrue
if itemName matches, false
otherwiseCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.