1 4 package com.nightlabs.ipanema.accounting; 5 6 import java.io.Serializable ; 7 8 import com.nightlabs.ModuleException; 9 import com.nightlabs.ipanema.store.Product; 10 11 21 public abstract class ProductInfoFactory 22 implements Serializable 23 { 24 25 29 private String organisationID; 30 31 35 private String productInfoFactoryID; 36 37 protected ProductInfoFactory() { } 38 public ProductInfoFactory(String organisationID, String productInfoFactoryID) 39 { 40 if (organisationID == null) 41 throw new NullPointerException ("organisationID"); 42 this.organisationID = organisationID; 43 44 if (productInfoFactoryID == null) 45 throw new NullPointerException ("productInfoFactoryID"); 46 this.productInfoFactoryID = productInfoFactoryID; 47 } 48 49 public abstract ProductInfo createProductInfo( 50 Product product, ProductInfo extendedProductInfo) 51 throws ModuleException; 52 53 } 54 | Popular Tags |