Class StubClassLoader


  • public final class StubClassLoader
    extends Object
    This utility class is used for class loading of stubs and set of Session IDs.
    • Method Detail

      • getClasses

        public static void getClasses​(String actualSrcDir,
                                      File srcDirectory,
                                      Set<String> classNames,
                                      String extension,
                                      Set<String> packagesToExclude)
        Get class names except ones in package provided
        Parameters:
        actualSrcDir - Actual directory
        srcDirectory - directories
        classNames - [out] File names
        extension - Extension of classes to check
        packagesToExclude - Packages to exclude
      • getStubInfosFromClassPath

        public static Map<String,​StubInfo> getStubInfosFromClassPath​(String stubClassPath)
                                                                    throws Exception
        Get the stub info of all stub classes in the provided class path
        Parameters:
        stubClassPath - Class path
        Returns:
        A set of information of all stubs in provided class path
        Throws:
        Exception - If some class was not found in class path and should be, or could not initialize paraver trace if needed.