code: private List<ComponentDeclaration> getDeclaredComponents(ClassLoader classLoader, String location)
          throws IOException
      {
          List<ComponentDeclaration> annotatedClassNames = new ArrayList<>();
          Enumeration<URL> urls = classLoader.getResources(location);
          while (urls.hasMoreElements()) {
              URL url = urls.nextElement();
  
              LOGGER.debug("Loading declared component definitions from [{}]", url);
  
              InputStream componentListStream = url.openStream();
  
              try {
                  annotatedClassNames.addAll(getDeclaredComponents(componentListStream));
              } finally {
                  componentListStream.close();
              }
          }
  
          return annotatedClassNames;
      }
docs: Get all components listed in the passed resource file.
  
  @param classLoader the classloader to use to find the resources
  @param location the name of the resources to look for
  @return the list of component implementation class names
  @throws IOException in case of an error loading the component list resource
  @since 3.3M1