Class ReflectionUtil


  • public final class ReflectionUtil
    extends Object
    Utility for class path reflection.
    Author:
    Michael Vorburger.ch
    • Method Detail

      • addAllClassesInSameAndSubPackageOfClass

        public static void addAllClassesInSameAndSubPackageOfClass​(org.ops4j.pax.exam.TestProbeBuilder probe,
                                                                   Class<?> clazz)
      • addAllClassesInSameAndSubPackageOfPackage

        public static void addAllClassesInSameAndSubPackageOfPackage​(org.ops4j.pax.exam.TestProbeBuilder probe,
                                                                     String packageName)
      • getClasses

        public static Stream<Class<?>> getClasses​(ClassLoader classLoader,
                                                  String packageName)
        Returns all classes in the named package, and its sub-packages.