ClassPathScanner

An utility class providing support for loading arbitrary subclasses available in the classpath.

Functions

Link copied to clipboard
fun resourcesMatching(regex: String, vararg inPackage: String): List<URL>

This function returns a list of all the resources in a certain (optional) package matching a regular expression.

Link copied to clipboard

This function returns a list of all the resources in a certain (optional) package matching a regular expression.

Link copied to clipboard
inline fun <T> subTypesOf(vararg inPackage: String): List<Class<out T>>
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.