public class CompositeDataSourcePoolMetadataProvider extends java.lang.Object implements DataSourcePoolMetadataProvider
DataSourcePoolMetadataProvider
implementation that returns the first
DataSourcePoolMetadata
that is found by one of its delegate.Constructor and Description |
---|
CompositeDataSourcePoolMetadataProvider(java.util.Collection<? extends DataSourcePoolMetadataProvider> providers)
Create a
CompositeDataSourcePoolMetadataProvider instance with an initial
collection of delegates to use. |
Modifier and Type | Method and Description |
---|---|
DataSourcePoolMetadata |
getDataSourcePoolMetadata(javax.sql.DataSource dataSource)
Return the
DataSourcePoolMetadata instance able to manage the specified
DataSource or null if the given data source could not be handled. |
public CompositeDataSourcePoolMetadataProvider(java.util.Collection<? extends DataSourcePoolMetadataProvider> providers)
CompositeDataSourcePoolMetadataProvider
instance with an initial
collection of delegates to use.providers
- the data source pool metadata providerspublic DataSourcePoolMetadata getDataSourcePoolMetadata(javax.sql.DataSource dataSource)
DataSourcePoolMetadataProvider
DataSourcePoolMetadata
instance able to manage the specified
DataSource
or null
if the given data source could not be handled.getDataSourcePoolMetadata
in interface DataSourcePoolMetadataProvider
dataSource
- the data source