Example usage for org.springframework.boot.cli.command.init InitializrServiceMetadata getDefaults

List of usage examples for org.springframework.boot.cli.command.init InitializrServiceMetadata getDefaults

Introduction

In this page you can find the example usage for org.springframework.boot.cli.command.init InitializrServiceMetadata getDefaults.

Prototype

Map<String, String> getDefaults() 

Source Link

Document

Returns the defaults applicable to the service.

Usage

From source file:org.springframework.boot.cli.command.init.ServiceCapabilitiesReportGenerator.java

private void z(InitializrServiceMetadata metadata, StringBuilder report) {
    report.append("Defaults:" + NEW_LINE);
    report.append("---------" + NEW_LINE);
    List<String> defaultsKeys = new ArrayList<String>(metadata.getDefaults().keySet());
    Collections.sort(defaultsKeys);
    for (String defaultsKey : defaultsKeys) {
        String defaultsValue = metadata.getDefaults().get(defaultsKey);
        report.append(defaultsKey + ": " + defaultsValue + NEW_LINE);
    }/*w  ww  . jav  a 2 s .  c  o m*/
}