I need to get all the interfaces at runtime from a given Class (all loaded in a ClassLoader).
For instance, if a class has been declared this way :
trait B
trait C
trait D
class A extends B with C with D
I want to get this information at runtime : A depends on B and C and D. The java getInterfaces() (or the interfaces() from the clapper library) methods gives only the first dependency, namely: A depends on B.
Is there a way to achieve that ?
I guess by reflection but I don't know how ?