Spring Framework 3.0 M2 released(Spring Framework 3.0 M2发布)
We are pleased to announce that the second Spring 3.0 milestone is finally available (download page).
This release comes with a wealth of revisions and new features:
Further Java 5 style API updates: consistent use of generic Collections and Maps, consistent use of generified FactoryBeans, and also consistent resolution of bridge methods in the Spring AOP API. Generified ApplicationListeners automatically receive specific event types only. All callback interfaces such as TransactionCallback and HibernateCallback declare a generic result value now. Overall, the Spring core codebase is now freshly revised and optimized for Java 5.
Extended concurrency support: Spring’s TaskExecutor abstraction has been updated for close integration with Java 5’s java.util.concurrent facilities. 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 far as possible. Furthermore, we provide support for asynchronous method invocations through the use of the new @Async annotation (or EJB 3.1’s @Asynchronous annotation). And in Spring 3.0 M3, we’ll be adding a scheduling namespace for convenient configuration of it all… including support for cron-style timers.
OXM module in core: We moved the Object/XML Mapping module, as known from the Spring Web Services project, to the Spring core project. OXM has been updated and revised for Java 5 as well, supporting marshalling and unmarshalling through JAXB2, JiBX, Castor, XMLBeans, and XStream. There is also OXM support for Spring JMS (MarshallingMessageConverter) and Spring MVC (MarshallingView).
RestTemplate: We have brand-new client-side REST support: the long-awaited RestTemplate, with HTTP processing infrastructure that is as flexible and extensible as you would expect from a Spring solution. There are also several improvements with respect to REST support in Spring MVC… Stay tuned for Arjen’s upcoming blog post on the latest REST support features!
MVC on Portlet 2.0: Spring Portlet MVC is based on the Portlet 2.0 API (JSR-286) now. We provide specific @ActionMapping, @RenderMapping, @ResourceMapping and @EventMapping annotations for Portlet MVC handler methods, including support for specific characteristics of those request types: e.g. action names, window states, resource ids, and event names (as defined by Portlet 2.0).
Early JPA 2.0 support: Finally, we are actively tracking the JPA 2.0 specification as well as emerging JPA providers with JPA 2.0 preview support. Spring 3.0 M2 already delivers early support for the JPA 2.0 API, e.g. query timeouts within Spring-managed transactions and QueryBuilder access in Spring-managed EntityManager proxies. We’ll wrap this up for Spring 3.0 RC1, as soon as the JPA 2.0 API is stable.
Now is a good time to give Spring 3.0 an early try! Let us know how it works for you… M2 doesn’t include reference documentation yet but comes with extensive javadoc and an extensive test suite. We’ll also be showing specific examples in follow-up blog posts.
We are now working towards our final milestone already: M3 will introduce annotation-based factory methods, declarative validation (based on JSR-303 “Bean Validation”), as well as new XML configuration namespaces (orm, scheduling). Spring MVC will receive an overhaul in terms of conversation management. We are also preparing for JSF 2.0 as far as necessary, keeping up the smooth integration experience with Spring.
spring3.0 M2发布了,可以到spring的网站上下载 。它带来了很多值得关注的新特性:
- 对java 5的全面支持。主要是很多接口开始支持泛型,加强了类型安全。核心部分的代码也针对java 5做了优化。
- 扩展了对并发的支持。
- OXM模块从spring ws项目中移到了核心中。
- 崭新的RestTemplate。接下来还会写一篇关于rest的博客,值得期待。
- Portal2.0支持。
- 开始尝试支持JPA2.0的一些特性。
下一个版本是M3,也是spring 3.0的最后一个milestone版本。在M3中会引入基于注解的工厂方法、声明是验证(JSR-303 “Bean Validation”,这个我比较期待,可以不用hibernate validation了)、还有spring mvc的conversation的范围管理以及尝试对JSF2.0的支持——都是非常值得期待的特性啊。
看来spring对标准的支持越来越好,越来越像一个轻量级的seam了。期待spring 3.0早日正式发布。
Popularity: 29% [?]


你可以选择你要存放project的位址,然后在该处按右键选SVN Checkout…,再填入你project repository的网址及要储存的资料夹,输入完帐号及密码后, repository上的档案就会下载下来了。注意你repository下会事先建立好三个目录:branch、trunk及tags,如果你还不是很熟悉版本控制的话,就先把你的code放在trunk目录下就好了,所以在checkout的时候网址应该输入:https://<你 project名称>.googlecode.com/svn/trunk/,然后本地端再输入你project的名称就好,这样一来你就有一份本地端的repository了。


最近评论