Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note

This feature requires V4.1 and later.

...

Expand
titleCommon XML Elements
Include Page
DataConnectorCommonChildElements
DataConnectorCommonChildElements
Expand
titleProperties
Include Page
VelocityTemplateProperties
VelocityTemplateProperties

Spring Configuration

If the springResource or springResourceRef attributes are specified, then the configuration of the DataConnector bean is partially delegated to the supplied resources. The system will create a factory for a StorageServiceDataConnector object, and look for beans in the Spring resource(s) supplied that match the types of properties supported by that type and its parent classes.

The connector may be supplied with beans of the following types:

In addition native bean IDs can be injected as follows:

  1. The StorageService instance is injected via the storageServiceRef attribute.

  2. The builder for the query can be specified as an externally defined bean via the executableSearchBuilderRef attribute (as a replacement for the <ContextTemplate> element and related elements). This allows for complete generality of the query-building process.

  3. The processing of the response can be specified with an externally defined bean via the mappingStrategyRef attribute (as a replacement for the <RecordMapping> element).

  4. The caching of results can be specified as an externally defined bean via the <ResultCacheBean> element (as a replacement for the <ResultCache> element).

  5. Rarely, a non-default Velocity engine can be injected via the templateEngine attribute.

...