public List<String> getClassesFromDir(File dir) throws IOException {
    ArrayList<String> list = new ArrayList<>();
    ArrayList<File> fileList = new ArrayList<>();
    findClassesFiles(dir, fileList);
    int length = dir.getAbsolutePath().length();
    for (File file : fileList) {
      String classPath = file.getAbsolutePath().substring(length + 1).replace(".class", "").replace(File.separatorChar, '.');
      list.add(classPath);
    }
    return list;
  }
Load classes (interface implementation) from directory.

@param <T>
@param dir  dir with classes, zip or jar's
@param type interface to load
@return
olv-core/src/main/java/pl/otros/logview/api/BaseLoader.java