PerAdapterProvider (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.dba, class: PerAdapterProvider

# Class PerAdapterProvider<T>

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

@Deprecated(since="5.0", forRemoval=true) public class PerAdapterProvider<T> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
unused, it is trivial to create per-adapter classes without the common superclass
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)`
  Deprecated, for removal: This API element is subject to removal in a future version.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `get(DbAdapter adapter)`
  Deprecated, for removal: This API element is subject to removal in a future version.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### PerAdapterProvider

    public PerAdapterProvider(Map<String,T> perAdapterValues, T defaultValue)
    Deprecated, for removal: This API element is subject to removal in a future version.

- ## Method Details

  - ### get

    public T get(DbAdapter adapter) throws DIRuntimeException
    Deprecated, for removal: This API element is subject to removal in a future version.
    Throws:
      `DIRuntimeException`