12
12
<sidebar id =" new-in-3-intro-java" >
13
13
<title >Java SE and Java EE Support</title >
14
14
15
- <para >The Spring Framework is now based on Java 5 and Java 6 is fully
15
+ <para >The Spring Framework is now based on Java 5, and Java 6 is fully
16
16
supported.</para >
17
17
18
18
<para >Furthermore, Spring is compatible with J2EE 1.4 and Java EE 5, while
201
201
<section id =" new-feature-java5" >
202
202
<title >Core APIs updated for Java 5</title >
203
203
204
- <para >BeanFactoryinterface returns typed bean instancesas far as
205
- possible <itemizedlist >
206
- <listitem >
207
- <para >T getBean(Stringname, Class< T> requiredType)</para >
208
- </listitem >
209
-
210
- <listitem >
211
- <para >Map< String, T> getBeansOfType(Class< T>
212
- type)</para >
213
- </listitem >
214
- </itemizedlist ></para >
215
-
216
- <para >Spring's TaskExecutorinterface extends
217
- <classname >java.util.concurrent.Executor</classname > now <itemizedlist >
204
+ <para >BeanFactory interface returns typed bean instances as far as possible:
205
+ <itemizedlist >
206
+ <listitem >
207
+ <para >T getBean(Stringname, Class< T> requiredType)</para >
208
+ </listitem >
209
+
210
+ <listitem >
211
+ <para >Map< String, T> getBeansOfType(Class< T> type)</para >
212
+ </listitem >
213
+ </itemizedlist >
214
+ </para >
215
+
216
+ <para >Spring's TaskExecutor interface now extends
217
+ <classname >java.util.concurrent.Executor</classname >:
218
+ <itemizedlist >
218
219
<listitem >
219
220
<para >extended AsyncTaskExecutor supports standard Callables with
220
221
Futures</para >
221
222
</listitem >
222
223
</itemizedlist ></para >
223
224
224
- <para >New Java 5 based converter API and SPI <itemizedlist >
225
+ <para >New Java 5 based converter API and SPI:
226
+ <itemizedlist >
225
227
<listitem >
226
228
<para >stateless ConversionService and Converters</para >
227
229
</listitem >
246
248
linkend =" expressions" >Spring Expression Language (SpEL).</link ></para >
247
249
248
250
<para >The Spring Expression Language was created to provide the Spring
249
- community with a single well supported expression language that can used
251
+ community a single, well supported expression language that can be used
250
252
across all the products in the Spring portfolio. Its language features
251
253
are driven by the requirements of the projects in the Spring portfolio,
252
254
including tooling requirements for code completion support within the
253
- eclipse based SpringSource Tool Suite.</para >
255
+ Eclipse based SpringSource Tool Suite.</para >
254
256
255
257
<para >The following is an example of how the Expression Language can be
256
258
used to configure some properties of a database setup <programlisting
@@ -281,11 +283,13 @@ public class RewardsTestDatabase {
281
283
<section id =" new-java-configuration" >
282
284
<title >Java based bean metadata</title >
283
285
284
- <para >Some core features from the <ulink
285
- url =" http://www.springsource.org/javaconfig" ><link
286
- linkend =" ???" >JavaConfig</link ></ulink > project have been added to the
287
- Spring Framework now. This means that the following annotations are
288
- now directly supported: <itemizedlist >
286
+ <para >
287
+ Some core features from the
288
+ <ulink url =" http://www.springsource.org/javaconfig" >JavaConfig</ulink >
289
+ project have been added to the Spring Framework now. This means
290
+ that the following annotations are now directly supported:
291
+
292
+ <itemizedlist >
289
293
<listitem >
290
294
<para >@Configuration</para >
291
295
</listitem >
@@ -309,7 +313,8 @@ public class RewardsTestDatabase {
309
313
<listitem >
310
314
<para >@Value</para >
311
315
</listitem >
312
- </itemizedlist ></para >
316
+ </itemizedlist >
317
+ </para >
313
318
314
319
<para >Here is an example of a Java class providing basic configuration
315
320
using the new JavaConfig features: <programlisting language =" java" >@Configuration
@@ -362,10 +367,10 @@ public class AppConfig{
362
367
<title >The Data Tier</title >
363
368
364
369
<para >Object to XML mapping functionality (OXM) from the Spring Web
365
- Services project have been moved to the core Spring Framework now. The
370
+ Services project has been moved to the core Spring Framework now. The
366
371
functionality is found in the <literal >org.springframework.oxm</literal >
367
- package. More information on the use of the <literal >OXM</literal > can
368
- be found in the <link linkend =" oxm" >Marshalling XML using O/X
372
+ package. More information on the use of the <literal >OXM</literal > module
373
+ can be found in the <link linkend =" oxm" >Marshalling XML using O/X
369
374
Mappers</link > chapter.</para >
370
375
</section >
371
376
0 commit comments