/** * Obtains an ordered list of resource locators. * <p> * This finds the all files with the specified name in the configuration directories. * The result is ordered from the lowest priority (base) file to the highest priority (application) file. * The result will always contain at least one file, but it may contain more than one. * * @param resourceName the resource name * @return the resource locators * @throws UncheckedIOException if an IO exception occurs * @throws IllegalStateException if there is a configuration error */ public static List<ResourceLocator> orderedResources(String resourceName) { ArgChecker.notNull(resourceName, "resourceName"); return Unchecked.wrap(() -> orderedResources0(resourceName)); }