/** * Constructs an instance based on the given paths. * * @param configurationKey the configuration key the matcher is responsible * for. * @param paths the list of paths to match. A path may end with <code>*</code> * signaling a wildcard match. * @return the constructed instance. */ public static PathMatcher forPaths( final ConfigurationKey<?> configurationKey, final List<String> paths) { return forMatchers(configurationKey, convertToMatchers(paths)); }
PathMatcher.forMatchers(key, pathMatcher); matchers.add(matcher);