Search in sources :

Example 1 with ConfigurationMetadataProperty

use of org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty in project sts4 by spring-projects.

the class PropertyIndexHarness method data.

public synchronized ItemConfigurer data(String id, String type, Object deflt, String description, String... source) {
    ConfigurationMetadataProperty item = new ConfigurationMetadataProperty();
    item.setId(id);
    item.setDescription(description);
    item.setType(type);
    item.setDefaultValue(deflt);
    index = null;
    datas.put(item.getId(), item);
    return new ItemConfigurer(item);
}
Also used : ConfigurationMetadataProperty(org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty)

Example 2 with ConfigurationMetadataProperty

use of org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty in project sts4 by spring-projects.

the class PropertyIndexHarness method deprecate.

public synchronized void deprecate(String key, String replacedBy, String reason) {
    index = null;
    ConfigurationMetadataProperty info = datas.get(key);
    Deprecation d = new Deprecation();
    d.setReplacement(replacedBy);
    d.setReason(reason);
    info.setDeprecation(d);
}
Also used : ConfigurationMetadataProperty(org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty) Deprecation(org.springframework.ide.vscode.boot.configurationmetadata.Deprecation)

Example 3 with ConfigurationMetadataProperty

use of org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty in project sts4 by spring-projects.

the class PropertyIndexHarness method deprecate.

public synchronized void deprecate(String key, String replacedBy, String reason) {
    index = null;
    ConfigurationMetadataProperty info = datas.get(key);
    Deprecation d = new Deprecation();
    d.setReplacement(replacedBy);
    d.setReason(reason);
    info.setDeprecation(d);
}
Also used : ConfigurationMetadataProperty(org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty) Deprecation(org.springframework.ide.vscode.boot.configurationmetadata.Deprecation)

Example 4 with ConfigurationMetadataProperty

use of org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty in project sts4 by spring-projects.

the class PropertyIndexHarness method data.

public synchronized ItemConfigurer data(String id, String type, Object deflt, String description, String... source) {
    ConfigurationMetadataProperty item = new ConfigurationMetadataProperty();
    item.setId(id);
    item.setDescription(description);
    item.setType(type);
    item.setDefaultValue(deflt);
    index = null;
    datas.put(item.getId(), item);
    return new ItemConfigurer(item);
}
Also used : ConfigurationMetadataProperty(org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty)

Aggregations

ConfigurationMetadataProperty (org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty)4 Deprecation (org.springframework.ide.vscode.boot.configurationmetadata.Deprecation)2