[ http://mc4j.org/jira/browse/STS-324?page=comments#action_10561 ] Tim Fennell commented on STS-324: ---------------------------------
Configuration from Spring is (I think) possible today. Stripes requires the minimum of one piece of configuration for this to work: the name of the Configuration class to use. You can, today, write you own Configuration implementation that goes against a Spring context instead of the web.xml for configuration. Also, the Configuration uses and supplies to Components a BootstrapPropertyResolver. This could also be subclassed, but right now does a search of: filter init params, web.xml general init params and then JVM system properties (supplied on the command line with -Dprop=value). The thing that's not implemented, that I think you are asking for, is for the Configuration to be available to things without having to run requests through the StripesFilter. This is a bit tricker, since the filter currently manages the lifecycle of the Configuration and pushes it into a thread local per request (to allow multiple Stripes configurations per web application). I'd have to think about how best to address that. > Flexible configuration support > ------------------------------ > > Key: STS-324 > URL: http://mc4j.org/jira/browse/STS-324 > Project: Stripes > Issue Type: Improvement > Reporter: Ignacio Coloma > Assigned To: Tim Fennell > > Right now stripes can only get configured from the web server (via the > web.xml file). Since there is a DefaultConfiguration etc, it would be nice to > have a flexible way of configuring stripes which would open support for the > following cases: > * Mock configuration for junit testcases, to allow things like > RedirectResolution from tests (right now they throw a NPE since Stripes is > not configured) > * Configuring stripes from spring. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
