public class WildcardConfigPatternMatcher extends Object implements ConfigPatternMatcher
ConfigPatternMatcher
supports a simplified wildcard matching.
See "Config.md ## Using Wildcard" for details about the syntax options.
Throws ConfigurationException
is multiple configurations are found.
Constructor and Description |
---|
WildcardConfigPatternMatcher() |
Modifier and Type | Method and Description |
---|---|
String |
matches(Iterable<String> configPatterns,
String itemName)
Returns the best match for an item name out of a list of configuration patterns.
|
boolean |
matches(String pattern,
String itemName)
This method is public to be accessible by
InstancePermission . |
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 foundpublic boolean matches(String pattern, String itemName)
InstancePermission
.pattern
- configuration pattern to match withitemName
- item name to matchtrue
if itemName matches, false
otherwiseCopyright © 2018 Hazelcast, Inc.. All rights reserved.