Class StubClassLoader
- java.lang.Object
-
- es.bsc.dataclay.util.management.stubs.StubClassLoader
-
public final class StubClassLoader extends Object
This utility class is used for class loading of stubs and set of Session IDs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
getClasses(String actualSrcDir, File srcDirectory, Set<String> classNames, String extension, Set<String> packagesToExclude)
Get class names except ones in package providedstatic Map<String,StubInfo>
getStubInfosFromClassPath(String stubClassPath)
Get the stub info of all stub classes in the provided class path
-
-
-
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 directorysrcDirectory
- directoriesclassNames
- [out] File namesextension
- Extension of classes to checkpackagesToExclude
- 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.
-
-