Package net.thucydides.core.reflection
Class ClassFinder
java.lang.Object
net.thucydides.core.reflection.ClassFinder
Load classes from a given package.
-
Method Summary
Modifier and TypeMethodDescriptionannotatedWith(Class annotation) fromPackage(String packageName) Scans all classes accessible from the context class loader which belong to the given package and subpackages.getClasses(String packageName) Scans all classes accessible from the context class loader which belong to the given package and subpackages.static ClassFinderthatImplement(Class<?> parentInterface)
-
Method Details
-
loadClasses
-
annotatedWith
-
fromPackage
Scans all classes accessible from the context class loader which belong to the given package and subpackages.- Parameters:
packageName- The base package- Returns:
- The classes
-
getClasses
Scans all classes accessible from the context class loader which belong to the given package and subpackages. Adapted from http://snippets.dzone.com/posts/show/4831 and extended to support use of JAR files- Parameters:
packageName- The base package- Returns:
- The classes
-
thatImplement
-
thatMatch
-