/** * Returns the configuration key associated with the given {@code path}. * * @param path the path to fetch its configuration key. Note that a * <code>null</code> value is allowed. * @return the configuration key for the given {@code path} or * <code>null</code> if no key is associated with it. */ @CheckForNull public final ConfigurationKey<?> getKey(final String path) { return matchers.getKey(path); }
return new PropertyResourceMatchers(anyKey, matchers);
/** * Default constructor. * * @param tlds the collection of top-level-domains (tlds). * @param environments the collection of registered environment names. * @param nodes the collection of registered node names. * @param groups the collection of registered group names. * @param matchers the matcher of properties file path names to a associated * configuration key. */ public AbstractPropertiesDefinitionContext(final Set<String> tlds, final Set<String> environments, final Set<String> nodes, final Set<String> groups, final PropertyResourceMatchers matchers) { this.tlds = create(tlds); this.environments = create(environments); this.nodes = create(nodes); this.groups = create(groups); this.matchers = (matchers != null ? matchers : new PropertyResourceMatchers()); }