DatastoreDescriptionConfig class providing a Spring Bean or static method that creates a DatastoreSchemaDescription object. Contributing stores and references to the creation of this object is usually done either directly in this class or via collections of stores and references exposed as Spring Beans in other DatastoreConfig classes.
The intended usage of the Datastore Helper API is to replace the logic in this configuration class with an @Autowired datastore configurator object and rely on the configurator’s buildSchemaDescription() method to provide the appropriate DatastoreSchemaDescription object.
Furthermore, DescriptionConfig classes that expose store and reference collections extend the AConfigurableSchema interface and add the stores and references directly to the configurator object. An implementation of the IDatastoreConfiguratorSetup class is then responsible for creating the datastore configurator Spring Bean.
An example migration would be:
schemaDescription() method is called statically in other configuration classes, to:
DatastoreConfiguratorSetup class exposes an IDatastoreConfigurator object as a Spring Bean.