Interface ProjectContributor

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
ApplicationPropertiesContributor, ComposeProjectContributor, GitIgnoreContributor, GradleBuildProjectContributor, HelpDocumentProjectContributor, MainSourceCodeProjectContributor, MavenBuildProjectContributor, MultipleResourcesProjectContributor, SingleResourceProjectContributor, TestSourceCodeProjectContributor, WebFoldersContributor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ProjectContributor extends org.springframework.core.Ordered
A callback for contributing on a generated project. Invoked with an order of 0 by default, considering overriding getOrder() to customize this behaviour.
Author:
Andy Wilkinson
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contribute(Path projectRoot)
    Contribute additional resources to the project in the specified root directory.
    default int
     
  • Method Details

    • contribute

      void contribute(Path projectRoot) throws IOException
      Contribute additional resources to the project in the specified root directory.
      Parameters:
      projectRoot - the root directory of the project
      Throws:
      IOException - if contributing a resource failed
    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered