Class DelegatingDataSource

java.lang.Object
org.springframework.jdbc.datasource.DelegatingDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource, InitializingBean
Direct Known Subclasses:
LazyConnectionDataSourceProxy, TransactionAwareDataSourceProxy, UserCredentialsDataSourceAdapter

public class DelegatingDataSource extends Object implements DataSource, InitializingBean
JDBC DataSource implementation that delegates all calls to a given target DataSource.

This class is meant to be subclassed, with subclasses overriding only those methods (such as getConnection()) that should not simply delegate to the target DataSource.

Since:
1.1
Author:
Juergen Hoeller
See Also: