com.holonplatform.jdbc

## Interface DataSourcePostProcessor

- All Superinterfaces:
    Serializable

      public interface DataSourcePostProcessor
      extends Serializable

  Interface which can be used to perform additional initialization and configuration on a `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.

  Since:
    5.0.0
  See Also:
    `DataSourceFactory`, `DataSourceBuilder`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `postProcessDataSource(DataSource dataSource, String typeName, DataSourceConfigProperties configurationProperties)` Post process a `DataSource` instance.

- - ### Method Detail

    - #### postProcessDataSource

          void postProcessDataSource(DataSource dataSource,
                                     String typeName,
                                     DataSourceConfigProperties configurationProperties)
                              throws com.holonplatform.core.config.ConfigPropertySet.ConfigurationException

      Post process a `DataSource` instance.
      Parameters:
        `dataSource` - DataSource instance
        `typeName` - DataSource type name
        `configurationProperties` - DataSource configuration properties
      Throws:
        `com.holonplatform.core.config.ConfigPropertySet.ConfigurationException` - If an error occurred

Copyright © 2017 The Holon Platform. All rights reserved.