Spring Framework LazyConnectionDataSourceProxy - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework LazyConnectionDataSourceProxy class.

This code example shows how to use the following methods:
        return dataSource;
    } 
 
    @Bean 
    public LazyConnectionDataSourceProxy lazyConnectionDataSource() {
        return new LazyConnectionDataSourceProxy(dataSource());
    } 
 
    @Bean 
    public TransactionAwareDataSourceProxy transactionAwareDataSource() {
        return new TransactionAwareDataSourceProxy(lazyConnectionDataSource());
    } 
 
    @Bean 
    public DataSourceTransactionManager transactionManager() {
        return new DataSourceTransactionManager(lazyConnectionDataSource());
    } 
 
    @Bean 
    public DataSourceConnectionProvider connectionProvider() { 
        return new DataSourceConnectionProvider(transactionAwareDataSource()); 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
    @Test
    public void lazyConnectionUrl() { 
        BoneCPDataSource targetDataSource = new BoneCPDataSource();
        targetDataSource.setJdbcUrl(TEST_URL);
        LazyConnectionDataSourceProxy dataSource = new LazyConnectionDataSourceProxy(targetDataSource);
        assertEquals(TEST_URL, this.dataSourceUtils.getUrl(dataSource));
    } 
 
    @Test
    public void transactionAwareUrl() { 
        BoneCPDataSource targetDataSource = new BoneCPDataSource();
        targetDataSource.setJdbcUrl(TEST_URL);
        TransactionAwareDataSourceProxy dataSource = new TransactionAwareDataSourceProxy(targetDataSource);
        assertEquals(TEST_URL, this.dataSourceUtils.getUrl(dataSource));
    } 
 
    @Test
    public void embeddedDataSourceUrl() { 
        BoneCPDataSource targetDataSource = new BoneCPDataSource();
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java