Note |
---|
This feature requires V4.1 and later. |
...
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
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:
The StorageService instance is injected via the
storageServiceRef
attribute.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.The processing of the response can be specified with an externally defined bean via the
mappingStrategyRef
attribute (as a replacement for the<RecordMapping>
element).The caching of results can be specified as an externally defined bean via the
<ResultCacheBean>
element (as a replacement for the<ResultCache>
element).Rarely, a non-default Velocity engine can be injected via the
templateEngine
attribute.
...