public interface DataSourcePostProcessor extends Serializable
DataSource instance
created by a DataSourceFactory.
Default DataSourcePostProcessor implementations can be registered using default Java ServiceLoader
extension, through a com.holonplatform.jdbc.DataSourcePostProcessor file under the
META-INF/services folder.
The Priority annotation on DataSourcePostProcessor class (where less priority value means higher
priority order) can be used to give a post processors execution order.
DataSourceFactory,
DataSourceBuilder| Modifier and Type | Method and Description |
|---|---|
void |
postProcessDataSource(DataSource dataSource,
String typeName,
DataSourceConfigProperties configurationProperties)
Post process a
DataSource instance. |
void postProcessDataSource(DataSource dataSource, String typeName, DataSourceConfigProperties configurationProperties) throws com.holonplatform.core.config.ConfigPropertySet.ConfigurationException
DataSource instance.dataSource - DataSource instancetypeName - DataSource type nameconfigurationProperties - DataSource configuration propertiescom.holonplatform.core.config.ConfigPropertySet.ConfigurationException - If an error occurredCopyright © 2019 The Holon Platform. All rights reserved.