Class MainSourceCodeProjectContributor<T extends TypeDeclaration,C extends CompilationUnit<T>,S extends SourceCode<T,C>>
java.lang.Object
io.spring.initializr.generator.spring.code.MainSourceCodeProjectContributor<T,C,S>
- Type Parameters:
T- language-specific type declarationC- language-specific compilation unitS- language-specific source code
- All Implemented Interfaces:
ProjectContributor,org.springframework.core.Ordered
public 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.- Author:
- Andy Wilkinson, Stephane Nicoll
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionMainSourceCodeProjectContributor(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) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.spring.initializr.generator.project.contributor.ProjectContributor
getOrder
-
Constructor Details
-
MainSourceCodeProjectContributor
public 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)
-
-
Method Details
-
contribute
- Specified by:
contributein interfaceProjectContributor- Throws:
IOException
-