Site Archives coding
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 [...]
Integrating Hades into existing applications
Today I’ve got an email by Thomas Braun who considered to play around with Hades. He is facing an application with an existing data access layer based on Spring’s HibernateDaoSupport class. This raised the question of how to integrate Hades into the app without changing existing code.
Thomas was using AnnotationSessionFactoryBean to create the SessionFactory from [...]
Clean Code – Review, Part I
As I have twittered already, I am reading “Clean Code” by Robert C. Martin right now. I expected the book to be a very fundamental one. Although there are a few parts I do not entirely agree with, I just rummaged throught chapter 11 “Systems” on my way home and was surprised how condensed Robert [...]
The DAO is dead! Long live the DAO!
Episode 121 of Software Engineering Radio deals with the topic of OR Mappers. Michael Plöd introduces the concept of object-relational mapping technologies, discusses advantages and disadvantages. The content of the episode is very basic to a large extend, which makes it ideal to get an introducing idea of the topic.
The reason I discuss this here [...]
Subtleties on java.lang.Enum
As i twittered a few days ago, I stumbled over a subtle issue in the core Java library. Not as extreme as here but one to raise ones eyebrows, too.
I just wanted to write a small method to access an enum value by its String representation or use a default, if the conversion fails:
public static [...]
Hades @ JUG Karlsruhe
Yesterday I gave a presentation about Hades at the Java User Group Karlsruhe. It was preceeded by an introduction to Aspect Oriented Programming by David Linsin and Florian Waibel of Netpioneer that showed the usage of AOP to define system architecture constraints.
You can download the slides as well as the sample code here or all [...]
Find It Quickly
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.


