public static List<Component> getComponents(File appDir) {
        return components(appDir, Component::new);
    }
Creates a reader for a config definition

@param defPath the path to the application package
@return the reader of this config definition
config-application-package/src/main/java/com/yahoo/config/model/application/provider/FilesApplicationPackage.java