Opening this up to the list for discussion
> no problem > I don't think it's just a plexus problem, in general it allows > extensibility and reuse. For instance you may want to subclass it with > a different behaviour and the constructor arguments approach is > limiting. At the end it's a matter of balancing ease of use and > reusability > > On 7/12/06, Luke Taylor wrote: >> I think these kind of changes should be discussed on the list >> beforehand. Ben and I talked about this kind of thing a while back and >> agreed that enforcing initialization of objects with a particular state >> and being able to guarantee their integrity isn't something to be given >> up lightly. >> >> Do you mind if I forward your reply to the list. If we are going change >> this approach to accommodate plexus then it should probably be discussed >> there. >> >> Carlos Sanchez wrote: >> > I'm adding Acegi to Continuum and it uses Plexus as IoC (it wasn't me) >> > with the small problem that it doesn't accept constructor arguments. >> > Default constructor+setters are still good to allow extension. I added >> > javadocs to make clear the need of calling the setters later and >> > checks to ensure the object is properly initilized. >> > >> > On 7/10/06, Luke Taylor wrote: >> >> What's with adding all these default constructors? There was some >> >> discussion a while back about using constructor injection for >> >> initialization where possible for required dependencies and avoiding the >> >> use of InitializingBean, setter injection etc... >> >> >> >> >> >> -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
