You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sam Hough <sa...@redspr.com> on 2007/09/25 12:53:11 UTC

most sensible factory pattern for a component

Seems like a common requirement to customise a component by having it create
a different type of component within it. Like ListView.newItem or
IItemFactory. Is extending the component to implement such a method any
better than passing in an object that implements some factory interface? 

Passing in a factory object seems better for re-use since you can only
extend an object once... Limits what the constructor can access more but
that may be a good thing?

Guess with an interface we get to choose.
-- 
View this message in context: http://www.nabble.com/most-sensible-factory-pattern-for-a-component-tf4514777.html#a12877154
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org