public abstract class ClassFinder extends Object
| Constructor and Description |
|---|
ClassFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
findServerClasses(String classpathEntry,
Collection<Pattern> excludes)
Finds the server side classes/interfaces under a class path entry -
either a directory or a JAR that matches
getJarPattern(). |
protected Stream<String> |
getBasePackages() |
protected Pattern |
getJarPattern()
JARs that will be scanned for classes to test, in addition to classpath
directories.
|
protected static List<String> |
getRawClasspathEntries()
Lists all class path entries by splitting the class path string.
|
protected static boolean |
isFunctionalType(Type type) |
protected boolean |
isTestClass(Class<?> cls) |
protected boolean |
isTestClassPath(String classPath) |
protected boolean isTestClassPath(String classPath)
protected static boolean isFunctionalType(Type type)
protected static List<String> getRawClasspathEntries()
Adapted from ClassPathExplorer.getRawClasspathEntries(), but without filtering.
protected Pattern getJarPattern()
protected boolean isTestClass(Class<?> cls)
protected List<String> findServerClasses(String classpathEntry, Collection<Pattern> excludes) throws IOException
getJarPattern().
Only classes under getBasePackages() are considered, and those
matching excludes are filtered out.
IOExceptionCopyright © 2000–2025 Vaadin Ltd. All rights reserved.