@Deprecated public class LegacyMatchingPointConfigPatternMatcher extends Object implements ConfigPatternMatcher
ConfigPatternMatcher
supports a simplified wildcard matching.
See "Config.md ## Using Wildcard" for details about the syntax.
In addition the candidates are weighted by the best match. No exception will be thrown if multiple configurations are found. The first best result is returned.
This matcher represents a "contains" matching to provide backward compatibility.
Please adapt your configuration and use MatchingPointConfigPatternMatcher
instead.
Constructor and Description |
---|
LegacyMatchingPointConfigPatternMatcher()
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.
|
public LegacyMatchingPointConfigPatternMatcher()
public String matches(Iterable<String> configPatterns, String itemName) throws ConfigurationException
ConfigPatternMatcher
matches
in interface ConfigPatternMatcher
configPatterns
- list of configuration patternsitemName
- item name to matchnull
if nothing matchesConfigurationException
- if ambiguous configurations are foundCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.