Skip to content

Commit b67a08c

Browse files
committed
Fix typo in Javadoc and emphasize @configuration 'lite' mode
1 parent bdc3599 commit b67a08c

File tree

1 file changed

+6
-5
lines changed
  • spring-context/src/main/java/org/springframework/context/annotation

1 file changed

+6
-5
lines changed

spring-context/src/main/java/org/springframework/context/annotation/Bean.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -83,12 +83,12 @@
8383
* // ...
8484
* }</pre>
8585
*
86-
* <p>{@code @Bean} methods may also be declared wihtin any {@code @Component} class, in
87-
* which case they will get processed in a configuration class 'lite' mode in which
86+
* <p>{@code @Bean} methods may also be declared within any {@code @Component} class, in
87+
* which case they will get processed in a configuration class <em>'lite'</em> mode in which
8888
* they will simply be called as plain factory methods from the container (similar to
8989
* {@code factory-method} declarations in XML). The containing component classes remain
90-
* unmodified in this case, and there are no unusual constraints for factory methods,
91-
* however, scoping semantics are not respected as described above for inter-bean method
90+
* unmodified in this case, and there are no unusual constraints for factory methods;
91+
* however, scoping semantics are <b>not</b> respected as described above for inter-bean method
9292
* invocations in this mode. For example:
9393
* <pre class="code">
9494
* &#064;Component
@@ -130,6 +130,7 @@
130130
* @author Costin Leau
131131
* @author Chris Beams
132132
* @author Juergen Hoeller
133+
* @author Sam Brannen
133134
* @since 3.0
134135
* @see Configuration
135136
* @see Scope

0 commit comments

Comments
 (0)