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
    • Constructor Detail

      • ClassPathUtil

        public ClassPathUtil()
    • Method Detail

      • listClasses

        public static Set<Class<?>> listClasses​(String... packageNames)
      • scanClasses

        public static Collection<Class<?>> scanClasses​(Class<? extends Annotation> annotationClass,
                                                       String packageNames)
        Parameters:
        annotationClass -
        packageNames - comma separated package names
        Returns:
      • 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