Update docs to use of @Bean inside a @Component

This commit is contained in:
Mark Pollack 2009-04-27 05:37:45 +00:00
parent cea8f7f69e
commit c2f4f97fa5
3 changed files with 420 additions and 379 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<chapter id="new-in-3">
<title>What's new in Spring 3.0?</title>
@ -178,8 +177,9 @@
</listitem>
<listitem>
<para>Object to XML mapping functionality (OXM) moved from Spring Web Services project</para>
</listitem>
<para>Object to XML mapping functionality (OXM) moved from Spring Web
Services project</para>
</listitem>
<listitem>
<para>Comprehensive REST support</para>
@ -348,32 +348,33 @@ public class AppConfig{
</section>
<section>
<title>Factory Bean definitions using annotations</title>
<title>Defining bean metadata within components</title>
<para>FactoryBeans can be defined within a Spring component definition
and registered using standard component-scanning techniques. See <link
linkend="beans-factorybeans-annotations">Factory Bean Definitions
using annotations</link> for more information</para>
<para><literal>@Bean</literal> annotated methods are also supported
inside Spring components. They contribute a factory bean definition to
the container. See <link
linkend="beans-factorybeans-annotations">Defining bean metadata within
components</link> for more information</para>
</section>
</section>
</section>
<section id="new-feature-oxm">
<title>The Data Tier</title>
<section id="new-feature-oxm">
<title>The Data Tier</title>
<para>Object to XML mapping functionality (OXM) from the Spring Web Services project have
been moved to the core Spring Framework now. The functionality is found in the
<literal>org.springframework.oxm</literal> package. More information on
the use of the <literal>OXM</literal> can be found
in the <link linkend="oxm">Marshalling XML using O/X Mappers</link> chapter.</para>
</section>
<para>Object to XML mapping functionality (OXM) from the Spring Web
Services project have been moved to the core Spring Framework now. The
functionality is found in the <literal>org.springframework.oxm</literal>
package. More information on the use of the <literal>OXM</literal> can
be found in the <link linkend="oxm">Marshalling XML using O/X
Mappers</link> chapter.</para>
</section>
<section id="new-feature-rest">
<title>The Web Tier</title>
<para>The most exciting new feature for the Web Tier is the support for building
RESTful web services and web applications. There are also some new annotations that
can be used in any web application.</para>
<para>The most exciting new feature for the Web Tier is the support for
building RESTful web services and web applications. There are also some
new annotations that can be used in any web application.</para>
<section>
<title>Comprehensive REST support</title>
@ -387,14 +388,14 @@ public class AppConfig{
functionality make use of
<interfacename>HttpConverter</interfacename>s to facilitate the
conversion between objects and their representation in HTTP request
and replies. </para>
and replies.</para>
<para>The <classname>MarhsallingHttpMessageConverter</classname> uses
the <emphasis>Object to XML mapping</emphasis> functionality mentioned earlier.</para>
the <emphasis>Object to XML mapping</emphasis> functionality mentioned
earlier.</para>
<para>Refer to the section on <link linkend="rest">REST support</link>
for more information.</para>
</section>
<section>
@ -407,7 +408,6 @@ public class AppConfig{
@CookieValue annotation</link> and <link
linkend="mvc-ann-requestheader">Mapping request header attributes with
the @RequestHeader annotation</link> for more information.</para>
</section>
</section>
@ -422,10 +422,11 @@ public class AppConfig{
<section id="new-feature-jee-6">
<title>Early support for Java EE 6</title>
<para>We provide support for asynchronous method invocations through the use of
the new @Async annotation (or EJB 3.1's @Asynchronous annotation).</para>
<para>We provide support for asynchronous method invocations through the
use of the new @Async annotation (or EJB 3.1's @Asynchronous
annotation).</para>
<para>JSF 2.0, JPA 2.0, etc</para>
<para>JSF 2.0, JPA 2.0, etc</para>
<para>Work in progress... not part of the Spring 3.0 M3 release.</para>
</section>

View File

@ -853,8 +853,10 @@ URI location = template.postForLocation(uri, booking, String.class, "1");
<section id="rest-message-conversion">
<title>HTTP Message Conversion</title>
<para>Objects passed to and returned from the methods getForObject(),
postForLocation(), and put() and are converted to HTTP requests and from
<para>Objects passed to and returned from the methods
<methodname>getForObject</methodname>,
<methodname>postForLocation</methodname>, and
<methodname>put</methodname> are converted to HTTP requests and from
HTTP responses by <interfacename>HttpMessageConverters</interfacename>.
The <interfacename>HttpMessageConverter</interfacename> interface is
show below to give you a better feel for its functionality</para>