Categories
Development

Spring Architecture

I have always been quite impressed with the Spring framework and its code. It’s not always the easiest thing to navigate (very deep hierarchies and some fairly advanced java concepts), but it’s always consistent, documented and well written. The deep hierarchies can be a pain to follow, but it is also what makes Spring extensible and customizable.

The sourcecode has been analyzed here and here, and the results are good. It pays to keep a close eye on some metrics.

We’re trying to do the same thing now and use the Maven reports as well as XRadar reports. It’s too early to draw any conclusions but I belive it will improve the quality of our code a lot.

Categories
Development

Lazy loading described

Johannes Brodwall has a good article over at java.net on implementing lazy loading. Of course most ORM tools implement this already, and you would probably use them instead. But the article gives good background for the mechanisms present in current ORM solutions. And as Johannes points out; sometimes you might just have to implement some stuff yourself because the tools just doesn’t cut it.

Categories
Development

Acegi Security System for Spring and more

Need to add some security to your Spring applications? The check this out!

“Acegi Security is a powerful, flexible security solution for enterprise software, with a particular emphasis on applications that use Spring. Using Acegi Security provides your applications with comprehensive authentication, authorization, instance-based access control, channel security and human user detection capabilities.” – acegisecurity.org