Class ClassPathUtil


  • public class ClassPathUtil
    extends Object
    Various class path, class loading and class scanning utilities. For more info about class-path scanning: https://github.com/classgraph/classgraph
    • Field Detail

      • LOGGER

        public static final Trace LOGGER
    • Constructor Detail

      • ClassPathUtil

        public ClassPathUtil()
    • Method Detail

      • listClasses

        public static Set<Class<?>> listClasses​(String packageName)
      • searchClasses

        public static void searchClasses​(String packageName,
                                         Consumer<Class<?>> consumer)
      • extractFileFromClassPath

        public static boolean extractFileFromClassPath​(String src,
                                                       String dst)
        Extract specified source on class path to file system dst
        Parameters:
        src - source
        dst - destination
        Returns:
        successful extraction