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 and Description
    `PerAdapterProvider(Map<String,T> perAdapterValues, T defaultValue)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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`

Copyright © 2001–2021 Apache Cayenne. All rights reserved.