Fix typo in Javadoc and emphasize @Configuration 'lite' mode

This commit is contained in:
Sam Brannen 2012-05-15 20:36:41 +02:00
parent bdc3599d3d
commit b67a08cfd7
1 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2011 the original author or authors. * Copyright 2002-2012 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -83,12 +83,12 @@ import org.springframework.beans.factory.support.AbstractBeanDefinition;
* // ... * // ...
* }</pre> * }</pre>
* *
* <p>{@code @Bean} methods may also be declared wihtin any {@code @Component} class, in * <p>{@code @Bean} methods may also be declared within any {@code @Component} class, in
* which case they will get processed in a configuration class 'lite' mode in which * which case they will get processed in a configuration class <em>'lite'</em> mode in which
* they will simply be called as plain factory methods from the container (similar to * they will simply be called as plain factory methods from the container (similar to
* {@code factory-method} declarations in XML). The containing component classes remain * {@code factory-method} declarations in XML). The containing component classes remain
* unmodified in this case, and there are no unusual constraints for factory methods, * unmodified in this case, and there are no unusual constraints for factory methods;
* however, scoping semantics are not respected as described above for inter-bean method * however, scoping semantics are <b>not</b> respected as described above for inter-bean method
* invocations in this mode. For example: * invocations in this mode. For example:
* <pre class="code"> * <pre class="code">
* &#064;Component * &#064;Component
@ -130,6 +130,7 @@ import org.springframework.beans.factory.support.AbstractBeanDefinition;
* @author Costin Leau * @author Costin Leau
* @author Chris Beams * @author Chris Beams
* @author Juergen Hoeller * @author Juergen Hoeller
* @author Sam Brannen
* @since 3.0 * @since 3.0
* @see Configuration * @see Configuration
* @see Scope * @see Scope