L
L
leolaz2013-11-19 00:24:05
Java
leolaz, 2013-11-19 00:24:05

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

1 answer(s)
K
Kukambara, 2013-11-19
@leolaz

new Reflections("my.package").getSubTypesOf(MyInterface.class)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question