private List<Function<?>> registerFunction(String jarFilePath,
      Collection<Function<?>> functions) {
    List<Function<?>> registeredFunctions = new ArrayList<>();
    for (Function<?> function : functions) {
      FunctionService.registerFunction(function);
      logger.debug("Registering function class: {}, from JAR file: {}",
          function.getClass().getName(), jarFilePath);
      registeredFunctions.add(function);
    }
    return registeredFunctions;
  }
Scan the JAR file and attempt to register any function classes found.

@param jarFile The {@link File} that contains {@link Function} that are to be registered
geode-core/src/main/java/org/apache/geode/cache/internal/execute/FunctionToFileTracker.java