From: Pit Capitain Date: 2006-09-28T23:04:11+09:00 Subject: Re: Multi-Module Alternative to the Factory Pattern? Trans schrieb: > I've been using a factory pattern for a set of packaging classes > --classes that generate different package formats (eg. Debian, RPM, > etc.), but it's not quite the right fit b/c it leads to repetition of > the staging step. Yuk! So I think a better fit is to have one class > (Packager) that calls on external modules (or classes) for each > different format. But, unfortuately there are quite a few attributes > needed by each from the Packager, and it's just doesn't seem right to > pass that many variables. (...) Tom, couldn't you pass the packager itself to the external modules and let them query the attributes they need? Regards, Pit