What are the new features of Spring 3 (compared to Spring 2.5)?

Can anyone tell me what's new in Spring 3, and the difference between the two (Spring 2.5 and Spring 3)?

+6
java spring
source share
3 answers

See here what's new in Spring 3.0.

+6
source share

Here are some excerpts from the New Features and Improvements page in Spring 3.0 with links to related technologies:

Java 5

All framework code has been redesigned to take advantage of Java 5 such as generics , varargs, and another enhancement language. We did our best to keep the code backward compatible. Now we are consistently using shared Collections and Maps , sequentially using shared FactoryBeans , and sequentially resolving bridge methods in the Spring AOP API . Generic ApplicationListeners automatically receives a specific event only types. All callback interfaces such as TransactionCallback and HibernateCallback declare a common result value. In general, Spring's core code base is now updated and optimized for Java 5.

Spring TaskExecutor abstraction has been updated to close integration with Java 5 java.util.concurrent . We provide first-class support for Callables and Futures now, as well as ExecutorService adapters, ThreadFactory integration, etc. This has been aligned with JSR-236 (Concurrency Utilities for Java EE 6) as much as possible. Moreover, we support asynchronous method calls by using the new @Async annotation (or EJB 3.1 @ Asynchronous annotations).

Overview of New Features

This is a list of new features for Spring 3.0. We will cover these in more detail later in this section.

+6
source share
0
source share

All Articles