Gregg Bolinger-7 wrote: > > It looks pretty good except it would be really nice to not have to use a > special filter. An interceptor would be better with all the bells and > whistles you have provided thus far. > > Gregg >
Thanks, Gregg. The reason I needed the GuiceFilter in there is to allow for ServletScopes from guice-servlet. I'm not aware of any way to do this without GuiceFilter (which is part of guice-servlet), but if there is a way I am totally interested. The major bummer at this point is how much crap you have to add to web.xml. >> So you do extend your " com.google.inject.servlet.GuiceFilter" from >> Stripes filter? That means no need to configure >> net.sourceforge.stripes.controller.StripesFilter? >> No, GuiceFilter is a separate filter that needs to be added, which allows Guice's ServletScope and SessionScope to be used. >> What about Stripes security? Are you covering it too? By Stripes >> security I mean class: " >> net.sourceforge.stripes.security.controller.StripesSecurityFilter" and >> associated annotations...(see: >> http://stripesframework.org/display/stripes/Securing+Stripes+With+ACLs) >> The current library allows injection into ActionBeanContext, which is available to your SecurityManager. I use that as a catch-all at this point, since it is available to all extensions. It seems like a pretty big job to hook in and use guice to create all of stripes' extensions, but I agree it would be nice. Of course, I'm always open to suggestions. > I agree with Gregg on this. If you do is as interceptor, you'll then > support all the filters/extensions (including security filters).... If I use an interceptor, I can't create the ActionBean myself, which means I can't use constructor injection. Sam -- View this message in context: http://www.nabble.com/Ann%3A-Stripes-guicer-%28Guice-for-Stripes%29-tp17649051p17651281.html Sent from the stripes-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
