Browse Source

Polish @Configuration Javadoc

Add note that nested @Configuration classes must be static.
pull/7/head
Chris Beams 15 years ago
parent
commit
693204aef8
  1. 3
      org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java

3
org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java

@ -46,7 +46,8 @@ import org.springframework.stereotype.Component; @@ -46,7 +46,8 @@ import org.springframework.stereotype.Component;
* <li>Configuration classes must be non-final
* <li>Configuration classes must be non-local (may not be declared within a method)
* <li>Configuration classes must have a default/no-arg constructor and may not use
* {@link Autowired} constructor parameters
* {@link Autowired} constructor parameters. Nested configuration classes must be
* {@code static}
* </ul>
*
* @author Rod Johnson

Loading…
Cancel
Save