Class ReflectionUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 for
        basePackage - The base package to scan (e.g.
        Returns:

        List of classes that implement the given interface