Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Java-Based Application Configuration [SPR-7420] #12078

spring-issuemaster opened this issue Aug 3, 2010 · 1 comment

Support Java-Based Application Configuration [SPR-7420] #12078

spring-issuemaster opened this issue Aug 3, 2010 · 1 comment


Copy link

@spring-issuemaster spring-issuemaster commented Aug 3, 2010

Chris Beams opened SPR-7420 and commented

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/>)


  • #12696 Resolve remaining SPR-7420 TODO items

Issue Links:

  • #11848 Add @ComponentScan annotation
  • #12544 Introduce @EnableSpringConfigured
  • #10852 Provide TestContext support for @Configuration classes
  • #9775 Decouple XML parsing from bean registration in BeanDefinitionParsers

22 votes, 23 watchers


This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Dec 6, 2011

Chris Beams commented

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.