Class ScanResultHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void handle​(io.github.classgraph.ScanResult scanResult, java.io.File joinfacesBaseDir)
      Handles the ScanResult produced by ClasspathScanner.
      protected void writeClassList​(java.io.File file, java.util.Collection<java.lang.String> classNames)
      Helper method which writes a list of class names to the given file.
      protected void writeClassMap​(java.io.File file, java.util.Map<java.lang.String,​? extends java.util.Collection<java.lang.String>> classMap)
      Helper method which writes a map of class names to the given file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScanResultHandler

        public ScanResultHandler()
    • Method Detail

      • handle

        public abstract void handle​(io.github.classgraph.ScanResult scanResult,
                                    java.io.File joinfacesBaseDir)
                             throws java.io.IOException
        Handles the ScanResult produced by ClasspathScanner.
        Parameters:
        scanResult - The result of the classpath scan.
        joinfacesBaseDir - The base dir for result files. This is usually "${classpathRoot}/META-INF/joinfaces"
        Throws:
        java.io.IOException - when the result file(s) could not be written.
      • writeClassList

        protected void writeClassList​(java.io.File file,
                                      java.util.Collection<java.lang.String> classNames)
                               throws java.io.IOException
        Helper method which writes a list of class names to the given file.
        Parameters:
        file - The target file in which the class names should be written.
        classNames - The class names which should be written in the target file.
        Throws:
        java.io.IOException - when the class names could not be written to the target file.
      • writeClassMap

        protected void writeClassMap​(java.io.File file,
                                     java.util.Map<java.lang.String,​? extends java.util.Collection<java.lang.String>> classMap)
                              throws java.io.IOException
        Helper method which writes a map of class names to the given file.
        Parameters:
        file - The target file in which the class names should be written.
        classMap - The class names which should be written in the target file.
        Throws:
        java.io.IOException - when the class names could not be written to the target file.