|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.catalog.impl.ProductCacheUpdateServiceImpl
public class ProductCacheUpdateServiceImpl
This service updates the product cache implemented by the RefreshableCachedProductRetrieveStrategy when changes to the products are made through the Commerce Manager. Note that the cache should be configured to not evict products automatically when using this service.
Constructor Summary | |
---|---|
ProductCacheUpdateServiceImpl()
|
Method Summary | |
---|---|
void |
setCacheUpdatePropertiesFile(java.lang.String cacheUpdatePropertiesFile)
Set the properties file used to track cache update times. |
void |
setProductService(ProductService productService)
Sets the product service. |
void |
setPropertiesDao(PropertiesDao propertiesDao)
Set the DAO used to load properties. |
void |
setRefreshableCachedProductRetrieveStrategy(RefreshableCachedProductRetrieveStrategy refreshableCachedProductRetrieveStrategy)
Set the cached product retrieve strategy that is to be updated. |
void |
setUtility(Utility utility)
Set the utility class. |
void |
updateProductCache()
Update the product cache. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public ProductCacheUpdateServiceImpl()
Method Detail |
---|
public void setCacheUpdatePropertiesFile(java.lang.String cacheUpdatePropertiesFile)
cacheUpdatePropertiesFile
- the file name (without the .properties extension)public void setProductService(ProductService productService)
productService
- the product servicepublic void setPropertiesDao(PropertiesDao propertiesDao)
propertiesDao
- the DAO used to load properties.public void setRefreshableCachedProductRetrieveStrategy(RefreshableCachedProductRetrieveStrategy refreshableCachedProductRetrieveStrategy)
refreshableCachedProductRetrieveStrategy
- the RefreshableCachedProductRetrieveStrategy
public void setUtility(Utility utility)
utility
- the utility classpublic void updateProductCache()
updateProductCache
in interface ProductCacheUpdateService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |