public class CompositeDataSourcePoolMetadataProvider extends Object implements DataSourcePoolMetadataProvider
DataSourcePoolMetadataProvider
implementation that returns the first
DataSourcePoolMetadata
that is found by one of its delegate.Constructor and Description |
---|
CompositeDataSourcePoolMetadataProvider(Collection<? extends DataSourcePoolMetadataProvider> providers)
Create a
CompositeDataSourcePoolMetadataProvider instance with an initial
collection of delegates to use. |
Modifier and Type | Method and Description |
---|---|
DataSourcePoolMetadata |
getDataSourcePoolMetadata(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(Collection<? extends DataSourcePoolMetadataProvider> providers)
CompositeDataSourcePoolMetadataProvider
instance with an initial
collection of delegates to use.providers
- the data source pool metadata providerspublic DataSourcePoolMetadata getDataSourcePoolMetadata(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 sourceCopyright © 2021 Pivotal Software, Inc.. All rights reserved.