Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to return DataSourceBuilder.Settings for getDataSourceConfig() an… #3264

Merged
merged 2 commits into from
Nov 5, 2023

Conversation

rbygrave
Copy link
Member

@rbygrave rbygrave commented Nov 5, 2023

…d getReadOnlyDataSourceConfig()

That is, existing code using DataSourceConfig has access to the getter methods of DataSourceConfig. The DataSourceBuilder interface only has the setter methods and DataSourceBuilder.Settings has both getters and setter methods.

That is, the refactor to extract the DataSourceBuilder interface also split off the getter methods to the DataSourceBuilder.Settings interface (because most of the time when using the builder we only need the setter methods and effectively hiding the getter methods behind the settings() is useful to simplify the API for users).

…d getReadOnlyDataSourceConfig()

That is, existing code using DataSourceConfig has access to the getter
methods of DataSourceConfig. The DataSourceBuilder interface only has
the setter methods and DataSourceBuilder.Settings has both getters and
setter methods.

That is, the refactor to extract the DataSourceBuilder interface also
split off the getter methods to the DataSourceBuilder.Settings interface
(because most of the time when using the builder we only need the
setter methods and effectively hiding the getter methods behind the settings()
is useful to simplify the API for users).
@rbygrave rbygrave self-assigned this Nov 5, 2023
@rbygrave rbygrave added this to the 13.25.0 milestone Nov 5, 2023
@rbygrave rbygrave merged commit e794f5e into master Nov 5, 2023
2 checks passed
@rbygrave rbygrave deleted the feature/DatabaseBuilder_Settings branch November 5, 2023 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant