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
ClassTrees or LibraryJarFiles from a given classpath.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends Resource>
Collection<T> doProvide(ResourceRequest<T> requested) Invoked byResourceProviderSpi.provide(ResourceRequest)after checking if the invocation is allowed.Sets the path.Methods inherited from class AbstractGenerator
cleanup, name, project, toStringMethods inherited from class AbstractProvider
context, name, of, rename, vavrStreamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ResourceProvider
context, name, of, resources
-
Constructor Details
-
ClasspathScanner
Instantiates a new classpath generator. The path needs to be set withpath.- Parameters:
project- the project
-
-
Method Details
-
path
Sets the path. 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:
path- the path- Returns:
- the classpath scanner
-
doProvide
Description copied from class:AbstractProviderInvoked byResourceProviderSpi.provide(ResourceRequest)after checking if the invocation is allowed.- Specified by:
doProvidein classAbstractProvider- Type Parameters:
T- the generic type- Parameters:
requested- the request for resources- Returns:
- the stream
-