In what way is MyConvolutedComponentFactory.createNewMyComponent()
better than "new MyComponent()"?

Martijn

2009/4/24 Nick Wiedenbrück <[email protected]>:
> Hi,
>
> I'm having many Components (DropDowns, ChoiceRenderers, ...) that are reused
> in different places in my application. For example I have one
> ChoiceRenderer  for persons, one for accounts and so on. I want to
> centralize the creation of these components in a factory in order to decople
> the clients. For example I'm thinking about a ChoiceRendererFactory with
> methods createPersonChoiceRenderer() and createAccountChoiceRenderer().
>
> Now, my question is where to put this factory. I need a central place, where
> the can find the factory. Is it a good idea to have a method
> createChoiceRendererFactory() on my Application class?
>
> Regards,
> Nick
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to