I have a datasource, defined as a bean. Class is defined as org.apache.commons.dbcp2.BasicDataSource. The bind method gets an in-parameter as a DataSource, an interface, that BD