org.apache.cayenne.configuration.server

## Class DataDomainProvider

- java.lang.Object
- - org.apache.cayenne.configuration.server.DataDomainProvider

- All Implemented Interfaces:
    Provider<DataDomain>
  Direct Known Subclasses:
    OsgiDataDomainProvider

      public class DataDomainProvider
      extends Object
      implements Provider<DataDomain>

  A `DataChannel` provider that provides a single instance of DataDomain configured per configuration supplied via injected `DataChannelDescriptorLoader`.
  Since:
    3.1

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected DataNodeFactory` | `dataNodeFactory`
    `protected DataChannelDescriptorMerger` | `descriptorMerger`
    `protected List<DataChannelFilter>` | `filters`
    `protected Injector` | `injector`
    `protected List<Object>` | `listeners`
    `protected DataChannelDescriptorLoader` | `loader`
    `protected List<String>` | `locations`
    `protected QueryCache` | `queryCache`
    `protected ResourceLocator` | `resourceLocator`
    `protected RuntimeProperties` | `runtimeProperties`
    `protected ValueObjectTypeRegistry` | `valueObjectTypeRegistry`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DataDomainProvider()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected DataNode` | `addDataNode(DataDomain dataDomain, DataNodeDescriptor nodeDescriptor)`
    `protected DataDomain` | `createAndInitDataDomain()`
    `protected DataDomain` | `createDataDomain(String name)`
    `DataDomain` | `get()`
    `protected DataChannelDescriptor` | `loadDescriptor()`

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

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

- - ### Field Detail

    - #### resourceLocator

          protected ResourceLocator resourceLocator

    - #### descriptorMerger

          protected DataChannelDescriptorMerger descriptorMerger

    - #### loader

          protected DataChannelDescriptorLoader loader

    - #### filters

          protected List<DataChannelFilter> filters

    - #### listeners

          protected List<Object> listeners

    - #### locations

          protected List<String> locations

    - #### injector

          protected Injector injector

    - #### queryCache

          protected QueryCache queryCache

    - #### runtimeProperties

          protected RuntimeProperties runtimeProperties

    - #### dataNodeFactory

          protected DataNodeFactory dataNodeFactory

    - #### valueObjectTypeRegistry

          protected ValueObjectTypeRegistry valueObjectTypeRegistry

  - ### Constructor Detail

    - #### DataDomainProvider

          public DataDomainProvider()

  - ### Method Detail

    - #### get

          public DataDomain get()
                         throws ConfigurationException

      Specified by:
        `get` in interface `Provider<DataDomain>`
      Throws:
        `ConfigurationException`

    - #### createDataDomain

          protected DataDomain createDataDomain(String name)

    - #### createAndInitDataDomain

          protected DataDomain createAndInitDataDomain()
                                                throws Exception

      Throws:
        `Exception`

    - #### loadDescriptor

          protected DataChannelDescriptor loadDescriptor()

      Since:
        4.0

    - #### addDataNode

          protected DataNode addDataNode(DataDomain dataDomain,
                                         DataNodeDescriptor nodeDescriptor)
                                  throws Exception

      Throws:
        `Exception`
      Since:
        4.0

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