« Eclipse 3.1 | Main | The zen of branching »



Feed You can follow this conversation by subscribing to the comment feed for this post.

Brian Topping
Your listing of the classes is helpful, thanks. A trick that I use to get around having to change configuration files for testing is to use three different classes of configuration files: Mainline, Runtime, and Test. Basically a mainline configuration is always loaded, in conjunction with either a runtime or test configuration. So my test AbstractTestBase class has a config location of {"classpath*:META-INF/applicationContext-*.xml", "classpath*:META-INF/testContext-*.xml"}, and my runtime has a config location of {"classpath*:META-INF/applicationContext-*.xml", "classpath*:META-INF/runtimeContext-*.xml"}. When I need to add components, I always add them to the mainline, unless there is a situation like you name here, which would be split up accordingly.
A useful tip - thanks! One problem - the right hand side of the code snippet is getting truncated (both in Firefox & IE). I managed to pluck the code from the html source anyway :)
Frode Reinertsen
Nice tip! Just want to mention that in my version av Acegi, 1.0.3, there has been some renaming: SecureContextImpl --> SecurityContextImpl ContextHolder --> SecurityContextHolder
Anna Skawińska
Thanks a lot! You saved me lots of experimenting! And thank Frode Reinertsen, too :)
Phil Haigh
As of acegi 0.9.0, ContectHolder is now SecurityContextHolder... Other than that an excellent article and yes, saved me lots of time too... which I burnt reading soem of your other posts ;-)
Automatic Gate
Thanks for the tips! You are helping lots of people here!

The comments to this entry are closed.