Is it possible in Java to check if an interface has been implemented?
If yes:
- Is there an official way to do this?
- How is it possible?
- And is it possible to check if it is implemented in an external library (jar)?
If no:
- Is there a workaround to check this?
An example of my problem can be this:
My interface is implemented in an external library(jar), I want to start one of my threads only if this interface has an implementation. (Obviously, I want to check it at runtime without know nothing about the external library.)
I accept also suggestion on possible workaround to solve this problem.
Note: I can't add framework that help in this task.