Class InitializrMetadata

java.lang.Object
io.spring.initializr.metadata.InitializrMetadata

public class InitializrMetadata extends Object
Meta-data used to generate a project.
Author:
Stephane Nicoll
See Also:
  • Constructor Details

    • InitializrMetadata

      public InitializrMetadata()
    • InitializrMetadata

      protected InitializrMetadata(InitializrConfiguration configuration)
  • Method Details

    • getConfiguration

      public InitializrConfiguration getConfiguration()
    • getDependencies

      public DependenciesCapability getDependencies()
    • getTypes

      public TypeCapability getTypes()
    • getBootVersions

      public SingleSelectCapability getBootVersions()
    • getPackagings

      public SingleSelectCapability getPackagings()
    • getJavaVersions

      public SingleSelectCapability getJavaVersions()
    • getLanguages

      public SingleSelectCapability getLanguages()
    • getName

      public TextCapability getName()
    • getDescription

      public TextCapability getDescription()
    • getGroupId

      public TextCapability getGroupId()
    • getArtifactId

      public TextCapability getArtifactId()
    • getVersion

      public TextCapability getVersion()
    • getPackageName

      public TextCapability getPackageName()
    • merge

      public void merge(InitializrMetadata other)
      Merge this instance with the specified argument.
      Parameters:
      other - the other instance
    • validate

      public void validate()
      Validate the metadata.
    • updateSpringBootVersions

      public void updateSpringBootVersions(List<DefaultMetadataElement> versionsMetadata)
      Update the available Spring Boot versions with the specified capabilities.
      Parameters:
      versionsMetadata - the Spring Boot boot versions metadata to use
    • createCliDistributionURl

      public String createCliDistributionURl(String extension)
      Create an URL suitable to download Spring Boot cli for the specified version and extension.
      Parameters:
      extension - the required extension
      Returns:
      the download URL
    • createSpringBootBom

      public BillOfMaterials createSpringBootBom(String bootVersion, String versionProperty)
      Create a BillOfMaterials for the spring boot BOM.
      Parameters:
      bootVersion - the Spring Boot version
      versionProperty - the property that contains the version
      Returns:
      a new BillOfMaterials instance
    • defaults

      public Map<String,Object> defaults()
      Return the defaults for the capabilities defined on this instance.
      Returns:
      the default capabilities