T - language-specific type declarationC - language-specific compilation unitS - language-specific source codepublic class MainSourceCodeProjectContributor<T extends TypeDeclaration,C extends CompilationUnit<T>,S extends SourceCode<T,C>> extends Object implements ProjectContributor
ProjectContributor for the application's main source code.| Constructor and Description |
|---|
MainSourceCodeProjectContributor(ProjectDescription description,
Supplier<S> sourceFactory,
SourceCodeWriter<S> sourceWriter,
org.springframework.beans.factory.ObjectProvider<MainApplicationTypeCustomizer<?>> mainTypeCustomizers,
org.springframework.beans.factory.ObjectProvider<MainCompilationUnitCustomizer<?,?>> mainCompilationUnitCustomizers,
org.springframework.beans.factory.ObjectProvider<MainSourceCodeCustomizer<?,?,?>> mainSourceCodeCustomizers) |
| Modifier and Type | Method and Description |
|---|---|
void |
contribute(Path projectRoot)
Contribute additional resources to the project in the specified root directory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrderpublic MainSourceCodeProjectContributor(ProjectDescription description, Supplier<S> sourceFactory, SourceCodeWriter<S> sourceWriter, org.springframework.beans.factory.ObjectProvider<MainApplicationTypeCustomizer<?>> mainTypeCustomizers, org.springframework.beans.factory.ObjectProvider<MainCompilationUnitCustomizer<?,?>> mainCompilationUnitCustomizers, org.springframework.beans.factory.ObjectProvider<MainSourceCodeCustomizer<?,?,?>> mainSourceCodeCustomizers)
public void contribute(Path projectRoot) throws IOException
ProjectContributorcontribute in interface ProjectContributorprojectRoot - the root directory of the projectIOException - if contributing a resource failedCopyright © 2021 Pivotal Software, Inc.. All rights reserved.