-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Ben Alex > Sent: Wednesday, April 20, 2005 1:04 PM > To: [email protected] > Subject: Re: [Acegisecurity-developer] Acegi Security facade > > Vadim Pesochinskiy wrote: > > > IMH Acegi needs a facade bean, which would administer wiring and > > setting up default behaviour. > > > We try to use sensible defaults (implemented in the Java > classes) to minimise XML where possible. > > A variety of approaches are available to further reduce XML > configuration: > > - Use a BeanPostProcessor > - Make beans BeanFactoryAware, using > DefaultListableBeanFactory to find likely collaborators and wire > them - Use autowiring and inner beans more often > - Use abstract beans as per Craig Walls' approach > > I actually prefer Craig's approach. Abstract beans are a > standard Spring capability, and people who invest time in > learning it receive benefits beyond Acegi Security. I believe > the other approaches obfuscate the configuration source, > which will increase difficulty when customising configuration > or troubleshooting. However, I invite people who wish to > write contributions that adopt these alternative approaches > to submit them for inclusion in the project.
+1 on the use of the Abstract Bean definitions. Those definitely make things easier. Perhaps it would help to ship a XML config wired up completely for replacement of the default web.xml facilities? That way, for users wishing to merely access a drop-in replacement for web.xml security, there's a preconfigured XML in the jar ready to go. Of course, they can override the bean definition(s) as they see fit. But this would lower the bar for those that might feel Acegi requires too much configuration. Seth -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQmbuPymbBUsLVvsCEQLvCgCfTriT4bghyQIfjkwTk034Ist9TL0Aniob em0TIEEJCX8OHrI7u5WRm90Z =rrVL -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Home: http://acegisecurity.sourceforge.net Acegisecurity-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
