Spring Framework
  1. Spring Framework
  2. SPR-7420

Support Java-Based Application Configuration

    Details

    • Last commented by a User:
      false

      Description

      Spring 3.0 introduced Java-Based bean definitions with @Configuration and @Bean.

      This new feature for Spring 3.1 will introduce Java-based mechanisms for enabling the higher-level application configuration functionality currently found only in Spring's XML namespaces. These include but are not limited to:

      • Enabling annotation-driven transaction management (<tx:annotation-driven/>)
      • Enabling annotation-driven scheduling (<task:annotation-driven/>)
      • Enabling AspectJ auto-proxying (<aop:aspectj-autoproxy)
      • Enabling domain object DI with @Configurable (<aop:spring-configured/>)
      • Enabling property-placeholder replacement (<context:property-placeholder/>)
      • Enabling AspectJ load-time weaving (<context:load-time-weaver/>)
      • Enabling MBean Export (<context:mbean-export/>)
      • Enabling component scanning (<context:component-scan/>)
      • Performing JNDI lookups (<jee:jndi-lookup/>)
      • Looking up local and remote stateless session beans (<jee:local-slsb/>; <jee:remote-slsb/>)

        Issue Links

          Activity

          Hide
          Chris Beams added a comment -

          This work is complete, coming largely in the form of Spring's new @Enable* annotations, such as @EnableTransactionManagement, @EnableScheduling, etc. Also includes the new @ComponentScan annotation, as well as the new LocalSessionFactoryBuilder in the orm.hibernate4 package which allows for convenient programmatic configuration of a Hibernate SessionFactory within @Bean methods without needing to deal with Spring's FactoryBean contract.

          See Javadoc for each of these classes for complete details and code examples; reference documentation is pending at time of this resolution but will be complete for 3.1 GA.

          Show
          Chris Beams added a comment - This work is complete, coming largely in the form of Spring's new @Enable* annotations, such as @EnableTransactionManagement , @EnableScheduling , etc. Also includes the new @ComponentScan annotation, as well as the new LocalSessionFactoryBuilder in the orm.hibernate4 package which allows for convenient programmatic configuration of a Hibernate SessionFactory within @Bean methods without needing to deal with Spring's FactoryBean contract. See Javadoc for each of these classes for complete details and code examples; reference documentation is pending at time of this resolution but will be complete for 3.1 GA.

            People

            • Assignee:
              Chris Beams
              Reporter:
              Chris Beams
              Last updater:
              Trevor Marshall
            • Votes:
              22 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 20 weeks, 1 day ago