Package com.embabel.common.util
Class ReflectionUtilsKt
-
- All Implemented Interfaces:
public final class ReflectionUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static Set<Class<?>>findAllSupertypes(Class<?> clazz)Find all supertypes of the given type. final static <T extends Any> List<Class<out T>>findImplementationsOnClasspath(Class<T> interfaceClass, String basePackage)Finds implementations of a given interface on the classpath using Spring utilities -
-
Method Detail
-
findAllSupertypes
final static Set<Class<?>> findAllSupertypes(Class<?> clazz)
Find all supertypes of the given type. Returns both classes and interfaces, including the class itself.
-
findImplementationsOnClasspath
final static <T extends Any> List<Class<out T>> findImplementationsOnClasspath(Class<T> interfaceClass, String basePackage)
Finds implementations of a given interface on the classpath using Spring utilities
- Parameters:
interfaceClass- The interface to find implementations forbasePackage- The base package to scan (e.g.- Returns:
List of classes that implement the given interface
-
-
-
-