Class ClasspathScanner
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.java.ClasspathScanner
- All Implemented Interfaces:
Generator, Renamable, ResourceProvider
Provides
FileTrees with classes from a given classpath.-
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, newResource, project, toStringMethods inherited from class AbstractProvider
context, name, of, rename, vavrStream
-
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
-