concept data source in category spring

This is an excerpt from Manning's book Spring in Action, Sixth Edition.
Here the
addScript()andaddScripts()methods set someStringproperties with the name of SQL scripts that should be applied to the database once the data source is ready. Whereas this is how you might configure aDataSourcebean if you aren’t using Spring Boot, autoconfiguration makes this method completely unnecessary.

This is an excerpt from Manning's book Spring Dynamic Modules in Action.
Referencing a data source is like referencing any other OSGi service—you use Spring DM’s service support and its reference element. All data sources implement the DataSource interface and are registered under this interface, so the value javax.sql.DataSource must be used for the interface attribute, as shown in the following snippet: