com.jp.protection.priv.products
Class ProductsStorageAdapter

java.lang.Object
  extended by com.jp.protection.priv.products.ProductsStorageAdapter
All Implemented Interfaces:
ProductsStorageListener, java.util.EventListener

public class ProductsStorageAdapter
extends java.lang.Object
implements ProductsStorageListener

Provides default convenience implementation of the ProductsStorageListener interface


Constructor Summary
ProductsStorageAdapter()
           
 
Method Summary
 void beforeProductsStorageSave(ProductsStorage aProductsStorage)
          Invoked before products storage will be saved.
 void productAdded(ProductsStorage aProductsStorage, Product aProduct)
          Invoked after a product has been added to the product storage
 void productDeleted(ProductsStorage aProductsStorage, Product aProduct)
          Invoked after a product has been deleted from the product storage
 void productsStorageLoaded(ProductsStorage aProductsStorage)
          Invoked after products storage has been loaded
 void productsStorageSaved(ProductsStorage aProductsStorage)
          Invoked after products storage has been saved
 void productUpdated(ProductsStorage aProductsStorage, Product aProduct)
          Invoked after a product has been updated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductsStorageAdapter

public ProductsStorageAdapter()
Method Detail

productsStorageLoaded

public void productsStorageLoaded(ProductsStorage aProductsStorage)
Description copied from interface: ProductsStorageListener
Invoked after products storage has been loaded

Specified by:
productsStorageLoaded in interface ProductsStorageListener
Parameters:
aProductsStorage - products storage

beforeProductsStorageSave

public void beforeProductsStorageSave(ProductsStorage aProductsStorage)
Description copied from interface: ProductsStorageListener
Invoked before products storage will be saved. Interested parties can listen for this event to commit pending changes to the products storage.

Specified by:
beforeProductsStorageSave in interface ProductsStorageListener
Parameters:
aProductsStorage - products storage

productsStorageSaved

public void productsStorageSaved(ProductsStorage aProductsStorage)
Description copied from interface: ProductsStorageListener
Invoked after products storage has been saved

Specified by:
productsStorageSaved in interface ProductsStorageListener
Parameters:
aProductsStorage - products storage

productAdded

public void productAdded(ProductsStorage aProductsStorage,
                         Product aProduct)
Description copied from interface: ProductsStorageListener
Invoked after a product has been added to the product storage

Specified by:
productAdded in interface ProductsStorageListener
Parameters:
aProductsStorage - products storage
aProduct - Product a product has been added to the product storage

productDeleted

public void productDeleted(ProductsStorage aProductsStorage,
                           Product aProduct)
Description copied from interface: ProductsStorageListener
Invoked after a product has been deleted from the product storage

Specified by:
productDeleted in interface ProductsStorageListener
Parameters:
aProductsStorage - products storage
aProduct - Product a product has been deleted from the product storage

productUpdated

public void productUpdated(ProductsStorage aProductsStorage,
                           Product aProduct)
Description copied from interface: ProductsStorageListener
Invoked after a product has been updated

Specified by:
productUpdated in interface ProductsStorageListener
Parameters:
aProductsStorage - products storage
aProduct - Product a product has been updated