Class WebFoldersContributor
java.lang.Object
io.spring.initializr.generator.spring.configuration.WebFoldersContributor
- All Implemented Interfaces:
ProjectContributor
,org.springframework.core.Ordered
A
ProjectContributor
that creates web-specific directories when a web-related
project is detected.- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorsConstructorDescriptionWebFoldersContributor
(Build build, InitializrMetadata metadata, ProjectDescription projectDescription) -
Method Summary
Modifier and TypeMethodDescriptionvoid
contribute
(Path projectRoot) Contribute additional resources to the project in the specified root directory.int
getOrder()
-
Constructor Details
-
WebFoldersContributor
public WebFoldersContributor(Build build, InitializrMetadata metadata, ProjectDescription projectDescription)
-
-
Method Details
-
contribute
Description copied from interface:ProjectContributor
Contribute additional resources to the project in the specified root directory.- Specified by:
contribute
in interfaceProjectContributor
- Parameters:
projectRoot
- the root directory of the project- Throws:
IOException
- if contributing a resource failed
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Specified by:
getOrder
in interfaceProjectContributor
-