subTypesOf

fun <T> subTypesOf(superClass: Class<T>, vararg inPackage: String): List<Class<out T>>

This function loads all subtypes of the provided Java class that can be discovered on the current classpath.

This function cannot use reified and inline (as it should have) due to Java being unaware of the required transformation to use them.


inline fun <T> subTypesOf(vararg inPackage: String): List<Class<out T>>

This function loads all subtypes of the provided Java class that can be discovered on the current classpath.