Class ClassPathUtil


  • public class ClassPathUtil
    extends Object
    Author:
    Peter Prochazka, Radovan Semancik, Viliam Repan (lazyman)
    • 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)
        This is not entirely reliable method. Maybe it would be better to rely on Spring ClassPathScanningCandidateComponentProvider
      • 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