public DataSource createDataSource ( Properties props ) throws SQLException { if ( props == null ) { props = new Properties ( ) ; } DataSource dataSource = newDataSource ( ) ; setBeanProperties ( dataSource , props ) ; return dataSource ; }
Creates a DataSource object .