This post originated from an RSS feed registered with Java Buzz
by dion.
Original Post: Implementing the Null Object Pattern using AOP
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
I enjoyed the article Implementing the Null Object Pattern using AOP, by Dale Asberry.
It is another example of how you can take something that is "annoying" in your development, and having an elegant solution with AOP.
NullPointerException's are such a pain. Whenever you get a NPE in your app as a developer you sit back and *sigh*. "Time for the debugger", and you know that it could be awhile.
With a simple aspect, and the right pointcuts, we get real information about the ugly NPEs.