Class ReflectionHelper

java.lang.Object
org.ehrbase.openehr.sdk.util.reflection.ReflectionHelper

public class ReflectionHelper extends Object
Helper class to find Configurations classes in the classpath.
  • Method Details

    • buildMap

      public static <T, S extends ClassDependent<T>> Map<Class<? extends T>,S> buildMap(Class<S> root)
      Returns a Map containing all implementing classes of the interface root with key the class they are associated to as subclass of ClassDependent
      Type Parameters:
      T -
      S -
      Parameters:
      root - A Interface extending ClassDependent
      Returns:
    • findAll

      public static List<Class<?>> findAll(String packageName)
    • findRootClass

      public static Class<?> findRootClass(Class<?> clazz)