Package org.apache.cayenne.dba

## Class PerAdapterProvider<T>

- java.lang.Object
- - org.apache.cayenne.dba.PerAdapterProvider<T>

- Direct Known Subclasses:
    `PkGeneratorFactoryProvider`

      public class PerAdapterProvider<T>
      extends Object

  An injectable provider that returns a given service in a context of a specific `DbAdapter`. This allows modules to create adapter-specific extensions without altering DbAdapter API.
  Since:
    4.0

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PerAdapterProvider​(Map<String,​T> perAdapterValues, T defaultValue)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `get​(DbAdapter adapter)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PerAdapterProvider

          public PerAdapterProvider​(Map<String,​T> perAdapterValues,
                                    T defaultValue)

  - ### Method Detail

    - #### get

          public T get​(DbAdapter adapter)
                throws DIRuntimeException

      Throws:
        `DIRuntimeException`