I spent a lot of time thinking about when Java-based configuration may come in handy. Annotations are comfortable – you annotate a class, and that is all. You do not have to remember about writing an additional method in some strange configuration class.