Example usage for org.springframework.boot.context.properties.source ConfigurationPropertyName EMPTY

List of usage examples for org.springframework.boot.context.properties.source ConfigurationPropertyName EMPTY

Introduction

In this page you can find the example usage for org.springframework.boot.context.properties.source ConfigurationPropertyName EMPTY.

Prototype

ConfigurationPropertyName EMPTY

To view the source code for org.springframework.boot.context.properties.source ConfigurationPropertyName EMPTY.

Click Source Link

Document

An empty ConfigurationPropertyName .

Usage

From source file:org.springframework.boot.jdbc.DataSourceBuilder.java

private void bind(DataSource result) {
    ConfigurationPropertySource source = new MapConfigurationPropertySource(this.properties);
    ConfigurationPropertyNameAliases aliases = new ConfigurationPropertyNameAliases();
    aliases.addAliases("url", "jdbc-url");
    aliases.addAliases("username", "user");
    Binder binder = new Binder(source.withAliases(aliases));
    binder.bind(ConfigurationPropertyName.EMPTY, Bindable.ofInstance(result));
}