Browse Source

Polish @Configuration Javadoc

Add note that nested @Configuration classes must be static.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4282 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/merge
Chris Beams 15 years ago
parent
commit
653773574e
  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