Site Archives java

Neglected classes in Spring – Part II


If you have worked with Spring 2.5 annotation based web MVC framework you know that it allows you to freely design you controller method signatures:
@RequestMapping(value = “users”, method = GET)
public String showUsers(Model model) {
model.addAttribute(“users”,
userManagement.getUsers());
return “users”;
}
As you can see we use a parameter of type Model that will [...]

Hades 1.0 released


Let me announce that as of yesterday Hades ships in its first stable version 1.0. As this of course marks an important milestone let me just briefly give an overview of the features Hades provides. I will start with the very basic features in this post and continue to elaborate on advanced ones in furthers [...]

Leveraging annotations in Java code


In the last few days it I happened to two short discussions on Twitter with Adam Bien (not really a discussion) and Keith Donald (slightly more intesive) on distinct but yet somehow related topics regarding the use of annotations in Java.
Using the right tool for the job
Keith answered my following tweet i posted after revisiting [...]

Conference autumn


After I got started holding presentations at conferences at Devoxx last year, this autumn will get really packed with presentation dates. I will kick of the season at GearConf in Düsseldorf. On Thursday Oct. 1st I will speak about increasing developer productivity with Mylyn. During development of Hades Mylyn became an indispensable tool to get [...]

Article on Hades in current issue of German JavaMagazin


The June issue of the German JavaMagzin features an article about Hades written by myself. I sketch out issues implementing persistence layers briefly and introduce solutions to these issues using Hades. Furthermore fellow developer Alexander Hanschke introduced Java User Group Mannheim in yet another article, too. Check out the current issue and get your copy.
Beyond [...]

Using Spring’s @Configurable in three easy steps


As you might not be aware of, besides injecting dependencies into beans Spring is able to inject dependencies into objects that are not instantiated by Spring. This becomes especially handy if you’re stuck to Domain Driven Design leveraging a rich domain model over an anemic one. As there’s been some buzz around that functionality on [...]

Achieving application modularity with Hera


The latest episode of the JavaPosse podcast presents a session of the this year’s JavaPosse roundup on Scala and application modularity. Although I attended the conference I did not attend this session, which is rather sad in retrospect as the attendees discuss a lot of things I also deal with.
As a note aside I want [...]

Unit testing annotation based Spring MVC controllers


Although it took me a while to get used to them, I now pretty much like the annotation based programming model for controllers in Spring MVC. The major advantage over the traditional inheritance based approach is, that the methods, that are bound to requests are simple public methods, that can easily be unit tested.
So while [...]