Registry objects | RefreshRegistry and UpdateRegistryStoreRegistry
The StoreRegistry is a lazy initialization in memory cache of StoreCopy objects. StoreCopy is a class that inherits from StoreAccessBean. Use the StoreRegistry "find" method (for example, StoreRegistry.find(Integer storeId) ) to obtain StoreCopy objects when you need read only store access beans. Otherwise, If you need to update a Store EJB, then you should instantiate a normal StoreAccessBean (not a StoreCopy) and use the setter methods and the commitCopyHelper method to update the Store object.
The StoreCopy object caches information about a store and its related information:
- Filenames of resource bundles files and the actual resource bundles
- List of supported language IDs
- Member ID of the owning organization of the store
- Access beans for the store default information
- Store description
- Default contract for the store
- Master catalog and other catalogs for the store
- Tax categories for the store
- Store directory tree under the Stores WebApp
If any of the cached information is changed, the StoreRegistry must be updated to invalidate the information cached in the StoreCopy object for that Store. The StoreRegistry is also responsible for invalidating cached store relationship information, cached for each Commerce server in the StoreRelationshipCache object.
xxxx