stripes-guice is doing the same thing. in addition, it also creates interceptors and the actionbeancontext so constructor based injection is also available to these components of stripes. I used to prefer the interceptor based approach because its less invasive. But I changed my mind cause you have have to expose all the private members over setters in order to have the dependencies injected.
On Thu, Apr 23, 2009 at 7:06 PM, Sebastian Hennebrueder <[email protected]> wrote: > Hello, > I have finished the evaluation of Stripes and published an article as > part of the series 'Web Framework Evaluation from a Java point of view'. > You can find it here: > http://www.laliluna.de/the-web-framework-evaluation.html > > There is a sample project illustrating a number of features. I would > like to have your feedback on an alternative approach to integrate a > business layer. I chose a different approach then the Spring or the EJB > 3 integration. What I did is to replace the ActionBean factory. I let > the Action beans create from the Pico AOP container. The nice think is > that I can use the powerful Pico constructor injection inside of my > ActionBean. > > I just need a constructor with the required classes and services. Pico > will use the constructor when it creates the ActionBean. > > public class PicoIntegration implements ActionBean { > private SampleService sampleService; > > public PicoIntegration(SampleService sampleService) { > this.sampleService = sampleService; > } > > What do you think? > > -- > Best Regards / Viele Grüße > > Sebastian Hennebrueder > ----- > Software Developer and Trainer for Hibernate / Java Persistence > http://www.laliluna.de > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
