The next step is to create the stores for each model. As we did with the models, we will try to create a generic store as well. Although the common configurations are not in the store, but in the proxy, having a super store class can help us to listen to events that are common for all the Static Data stores.
We will create a super store named Packt.store.staticData.Abstract
.
As we need a store for each model, we will create the following stores:
Packt.store.staticData.Actors
Packt.store.staticData.Categories
Packt.store.staticData.Languages
Packt.store.staticData.Cities
Packt.store.staticData.Countries
The most important configurations will be declared inside the proxy as url
, reader
, writer
, and so on. Some of these configurations will be the same for all stores of the staticData
package. For this reason, we can also create a super proxy to reuse most of the code. We will create a proxy named Packt.proxy.StaticData
.
At the end of this topic, we will have created all...