I have started using Java configuration files for creating Spring beans using the @Bean
annotation. I really like this method for some of my more complex classes especially classes that involve generics.
However, I find that the Java file is less readable than XML with respect to identifying beans and their ids. Especially where there are a mix of @Bean
methods and non-bean generation helper methods.
I was hoping someone could point me to a good example of doing this in a readable fashion. Or if there is a reference implementation I could use as an example / guideline.