001package headfirst.factory.pizzaaf; 002 003public class NYPizzaIngredientFactory implements PizzaIngredientFactory { 004 005 public Dough createDough() { 006 return new ThinCrustDough(); 007 } 008 009 public Sauce createSauce() { 010 return new MarinaraSauce(); 011 } 012 013 public Cheese createCheese() { 014 return new ReggianoCheese(); 015 } 016 017 public Veggies[] createVeggies() { 018 Veggies veggies[] = { new Garlic(), new Onion(), new Mushroom(), new RedPepper() }; 019 return veggies; 020 } 021 022 public Pepperoni createPepperoni() { 023 return new SlicedPepperoni(); 024 } 025 026 public Clams createClam() { 027 return new FreshClams(); 028 } 029}