1 4 package com.nightlabs.ipanema.store; 5 6 import com.nightlabs.ModuleException; 7 8 22 public abstract class ProductFactory 23 { 24 28 private String organisationID; 29 30 34 private String productFactoryID; 35 36 protected ProductFactory() { } 37 38 public ProductFactory(String organisationID, String productFactoryID) 39 { 40 if (organisationID == null) 41 throw new NullPointerException ("organisationID"); 42 this.organisationID = organisationID; 43 44 if (productFactoryID == null) 45 throw new NullPointerException ("productFactoryID"); 46 this.productFactoryID = productFactoryID; 47 } 48 49 56 public abstract Product createProduct(Product productType) 57 throws ModuleException; 58 59 } 60 | Popular Tags |