Package io.spring.initializr.web.project
Interface ProjectRequestToDescriptionConverter<R extends ProjectRequest>
- Type Parameters:
R
- the concreteProjectRequest
type
- All Known Implementing Classes:
DefaultProjectRequestToDescriptionConverter
- 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 ProjectRequestToDescriptionConverter<R extends ProjectRequest>
Convert a
ProjectRequest
to a ProjectDescription
.- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(R request, InitializrMetadata metadata) Validate and convert the specifiedProjectRequest
to aProjectDescription
used as the source of project generation.
-
Method Details
-
convert
Validate and convert the specifiedProjectRequest
to aProjectDescription
used as the source of project generation.- Parameters:
request
- the request to convertmetadata
- the metadata instance to use- Returns:
- a validated
ProjectDescription
to use to generate a project that matches the specifiedrequest
-