@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 |
---|---|
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 matchpublic boolean matches(String pattern, String itemName)
InstancePermission
.pattern
- configuration pattern to match withitemName
- item name to matchCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.