Finding all classes implementing a specific interface [duplicate]
You can find an answer here. I can suggest using org.reflections You can take a look at it here Reflections reflections = new Reflections(“com.mycompany”); Set<Class<? extends MyInterface>> classes = reflections.getSubTypesOf(MyInterface.class);