That's what service builder methods are for. They're the shim for services that don't have a proper constructor, or that have more complicated initialization logic.
On Nov 19, 2007 4:16 AM, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > On Sat, 17 Nov 2007 14:41:16 -0200, Howard Lewis Ship <[EMAIL PROTECTED]> > wrote: > > > On Nov 16, 2007 10:39 PM, Patrick Moore <[EMAIL PROTECTED]> wrote: > >> I disagree with philosophy of forcing people to have the services only > >> injected via constructors because: > >> > >> 1. it results in a monster constructors for some key services. > > > > I would say that those key services may be insufficiently factored > > into smaller cooperating services. Seperation of concerns! > > What about services you can't add constructors, like Hibernate sessions? > > -- > Thiago H. de Paula Figueiredo > Desenvolvedor, Instrutor e Consultor de Tecnologia > Eteg Tecnologia da Informação Ltda. > http://www.eteg.com.br > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Partner and Senior Architect at Feature50 Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]