I found the API on the PizzaToppingFactory to be too verbose, and the requirement to use a separate but coupled PizzaBottomFactory hazardous (I forgot a bottom one time with disastrous results), so I created a PizzaBuilder class which allows method chaining for convenience and added benefit of giving the maintainers behind you brain cancer. I dropped DI support, but built in into an OSGi bundle, which can be found in an Apache Felix subproject (apache_yum).
Bon appetit! =) Steve On Tue, Oct 5, 2010 at 12:37 PM, Casper Bang <[email protected]> wrote: > You guys are silly, you don't use concrete pizza toppings directly... > instead you build a PizzaToppingFactory and outsource the > implementations as an SPI or at the very least, through DI. I wrote a > PizzaBottomFactory (source somewhere on sourceforge), which allows me > to enjoy fat Chicago style pan pizza even though I am in Europe at the > moment. But whomever writes a PizzaToppingFactory, please also kindly > provide a CheeseFilterAdaptor for those of us who don't like cheese. > > On Oct 5, 6:21 pm, Ricky Clarkson <[email protected]> wrote: > > You're completely wrong. You only need 2 slices of American Hot to do > > the same as 5 whole Ham and Mushroom pizzas put together. > > > > > > > > On Tue, Oct 5, 2010 at 5:20 PM, CKoerner <[email protected]> wrote: > > > I think I'm more productive using Ham and Mushroom. What about you? > > > > > -- > > > You received this message because you are subscribed to the Google > Groups "The Java Posse" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > [email protected]<javaposse%[email protected]> > . > > > For more options, visit this group athttp:// > groups.google.com/group/javaposse?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<javaposse%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
