Registry objects | RefreshRegistry and UpdateRegistry

StoreRegistry

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:

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