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);
}
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);
}
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);
}
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);
}
Aggregations