Categories
How to find all classes implementing an interface or extending a class in java?
Is it possible, and if so, how to find all classes that implement an interface or extend a class in java. Can you use reflection somehow?
Answer the question
In order to leave comments, you need to log in
new Reflections("my.package").getSubTypesOf(MyInterface.class)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question