Class ClasspathScanner
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.java.ClasspathScanner
- All Implemented Interfaces:
Generator, ResourceProvider
Provides
FileTrees with classes from a given classpath.-
Field Summary
Fields inherited from class AbstractProvider
log -
Constructor Summary
ConstructorsConstructorDescriptionClasspathScanner(Project project, String path) Instantiates a new classpath provider. -
Method Summary
Modifier and TypeMethodDescriptiondoProvide(ResourceRequest<T> requested) ProvideFileTrees with classes from a given classpath if the requested resource is of type ClasspathElement.Methods inherited from class AbstractGenerator
cleanup, name, name, newResource, project, toStringMethods inherited from class AbstractProvider
provideMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ResourceProvider
provide
-
Constructor Details
-
ClasspathScanner
Instantiates a new classpath provider. Thepathis a list of directories or jar files separated by the system's path separator. Relative paths are resolved against the project's directory.- Parameters:
project- the projectpath- the path
-
-
Method Details
-
doProvide
ProvideFileTrees with classes from a given classpath if the requested resource is of type ClasspathElement.- Specified by:
doProvidein classAbstractProvider- Type Parameters:
T- the requested type- Parameters:
requested- the requested resources- Returns:
- the stream
-