com.hazelcast.config.matcher
Class RegexConfigPatternMatcher

java.lang.Object
  extended by com.hazelcast.config.matcher.RegexConfigPatternMatcher
All Implemented Interfaces:
ConfigPatternMatcher

public class RegexConfigPatternMatcher
extends Object
implements ConfigPatternMatcher

This ConfigPatternMatcher uses Java regular expressions for matching.

Throws ConfigurationException is multiple configurations are found.


Constructor Summary
RegexConfigPatternMatcher()
           
RegexConfigPatternMatcher(int flags)
           
 
Method Summary
 String matches(Iterable<String> configPatterns, String itemName)
          Returns the best match for an item name out of a list of configuration patterns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexConfigPatternMatcher

public RegexConfigPatternMatcher()

RegexConfigPatternMatcher

public RegexConfigPatternMatcher(int flags)
Method Detail

matches

public String matches(Iterable<String> configPatterns,
                      String itemName)
               throws ConfigurationException
Description copied from interface: ConfigPatternMatcher
Returns the best match for an item name out of a list of configuration patterns.

Specified by:
matches in interface ConfigPatternMatcher
Parameters:
configPatterns - list of configuration patterns
itemName - item name to match
Returns:
a key of configPatterns which matches the item name or null if nothing matches
Throws:
ConfigurationException - if ambiguous configurations are found


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.