Support for Spring JavaConfig

In case you have missed it: recent post-M4 nightly builds of Spring IDE contain basic support for Spring JavaConfig.

Just add the ConfigurationPostProcessor and a bean that is annotated with @Configuration to your bean definition XML file. Spring IDE will parse the configuration class and create bean definitions for every bean creation method - method annotated with @Bean - found in the class hierachy.

At the moment the support does not create bean dependencies by parsing the code of the bean creation method like it was implemented in an earlier prototype - is this feature actually desirable. Furthermore the @SpringAdvisor and @SpringAdvice annotations are not recognized by Spring IDE. Both features will be added later.

Note the little @ overlay image on the beans in the Spring Explorer and Beans Cross References View in the following screenshot. This overlay indicates a bean created by the ConfigurationPostProcessor.

spring-javaconfig-1.png

5 Responses to “Support for Spring JavaConfig”


  1. 1 johnlon Oct 23rd, 2007 at 22:55 Quote

    When will javaconfig be out of experimental status ?

    Not going to use this in prod (or dev) until it has a firmer footing.

  2. 2 Chris Beams Nov 5th, 2007 at 6:20 Quote

    When will javaconfig be out of experimental status ?

    Take a look at Rod’s latest post regarding JavaConfig. Good things to come, and in pretty short order.

    http://blog.interface21.com/main/2007/11/04/spring-java-configuration-moving-ahead/

    - Chris

  3. 3 No Prescription Needed Apr 23rd, 2009 at 19:41 Quote

    When you buy No Prescription needed from the internet, what really happens is that you do get a prescription, but this prescription is filled out online, so no one is going to know you who is the one that made the application.

  1. 1 First Release Candidate Available at Spring IDE Blog Pingback on Jun 11th, 2007 at 13:54
  2. 2 Spring IDE 2.0 is Final at Spring IDE Blog Pingback on Jun 27th, 2007 at 18:11

Leave a Reply

Quote selected text