Пример #1
0
 private IWARProduct createBasicProduct() {
   WARProductModel model = new WARProductModel();
   WARProductModelFactory factory = new WARProductModelFactory(model);
   String requiredBundles[] = Validator.REQUIRED_BUNDLES;
   IWARProduct product = (IWARProduct) factory.createProduct();
   for (int i = 0; i < requiredBundles.length; i++) {
     addBundleToProduct(factory, requiredBundles[i], product);
   }
   return product;
 }
Пример #2
0
 private IWARProduct createPlainProduct() {
   WARProductModel model = new WARProductModel();
   WARProductModelFactory factory = new WARProductModelFactory(model);
   IWARProduct product = (IWARProduct) factory.createProduct();
   return product;
 }