getNamesOfClassesImplementing

fun <T : Any> getNamesOfClassesImplementing(classloader: ClassLoader, clazz: Class<T>, classVersionRange: IntRange? = null): Set<String>

Scans for all the non-abstract classes in the classpath of the provided classloader which implement the interface of the provided class.

Return

names of the identified classes.

Parameters

classloader

the classloader, which will be searched for the classes.

clazz

the class of the interface, which the classes - to be returned - must implement.

classVersionRange

if specified an exception is raised if class version is not within the passed range.

Throws

if the class version is not within range.