« August 2004 | Main | October 2004 »

September 2004 Archives

September 7, 2004

Roll-Your-Own IoC with Struts

IoC, aka dependency injection, is the current trend. The idea is simple: create your normal class, and rather than going and fetching things you might want (like datasources, factories, and so on), get them given to you instead. This greatly facilitates things like unit testing, because you've got a lot less dependencies to set up.

Struts uses Actions to drive an application. This describes a way to use dependency injection techniques with Struts.

Continue reading "Roll-Your-Own IoC with Struts" »

Roll-Your-Own IoC with Hibernate

It can be pretty useful to supply dependencies to domain objects that you're loading via Hibernate. This is where Hibernate Interceptors come into play.

Continue reading "Roll-Your-Own IoC with Hibernate" »

September 12, 2004

Follow-up on IoC with Struts

Don Brown made a very good point about a gotcha with the IoC technique I demonstrated with Struts: it's potentially not threadsafe.

Continue reading "Follow-up on IoC with Struts" »

September 20, 2004

Creational vs access patterns, and other diversions

A little while back, I blogged about how static and singleton are not synonymous, and one of the things I mentioned in there was the concept of an "access pattern". This is a term I've been kicking around for a while (in person, anyway... I think that was the first time I'd written about it), and I wanted to explore it a bit more here.

Continue reading "Creational vs access patterns, and other diversions" »

September 24, 2004

Gotcha with Struts/WebLogic and forwarding multi-part requests

Turns out that, with Struts 1.1. at least, this can be a bad thing to do. Why? You lose the parameters on the request.

Continue reading "Gotcha with Struts/WebLogic and forwarding multi-part requests" »

About September 2004

This page contains all entries posted to Software is too expensive to build cheaply... in September 2004. They are listed from oldest to newest.

August 2004 is the previous archive.

October 2004 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.35