Interface Generator
- All Superinterfaces:
ResourceProvider
- All Known Implementing Classes:
AbstractGenerator, ClasspathScanner, EclipseConfigurator, JarGenerator, JavaCompiler, Javadoc, JavadocJarGenerator, JavaResourceCollector, JavaTool, LibraryGenerator, MvnPublisher, PomFileGenerator, ResourceCollector, SourcesJarGenerator, UberJarGenerator, VscodeConfigurator
Models a ResourceProvider that generates new Resources (artifacts)
and makes them available to a Project.
In general, generators follow one of the following patterns:
-
They generate resources from arbitrary inputs. In this case, methods for adding inputs should be named as appropriate for the generator and the type of input.
-
They generate resources from explicitly specified resources. In this case, methods for adding inputs should be named
add(Type... values)for enumerated values andaddXxx(Stream<Type> values)for streams. (We cannot defines a genericadd(Stream<T>)method due to type erasure.) -
They generate resources from resources actively obtained from
ResourceProviders. In this case, methods for adding providers should be namedfrom(...). This can be enforced by implementingResourceRetriever.
All generators must handle requests for Cleanliness.
-
Method Summary
Methods inherited from interface ResourceProvider
provide
-
Method Details
-
name
-
project
-