Package io.spring.initializr.web.support
Class DefaultDependencyMetadataProvider
java.lang.Object
io.spring.initializr.web.support.DefaultDependencyMetadataProvider
- All Implemented Interfaces:
DependencyMetadataProvider
A default
DependencyMetadataProvider implementation.- Author:
- Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(InitializrMetadata metadata, Version bootVersion) Return the dependency metadata to use for the specifiedbootVersion.
-
Constructor Details
-
DefaultDependencyMetadataProvider
public DefaultDependencyMetadataProvider()
-
-
Method Details
-
get
@Cacheable(cacheNames="initializr.dependency-metadata", key="#p1") public DependencyMetadata get(InitializrMetadata metadata, Version bootVersion) Description copied from interface:DependencyMetadataProviderReturn the dependency metadata to use for the specifiedbootVersion.- Specified by:
getin interfaceDependencyMetadataProvider- Parameters:
metadata- the intializr metadatabootVersion- the Spring Boot version- Returns:
- the dependency metadata
-