From 693204aef8457d39d3c8d30dbb7cf78ce9deffcb Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Wed, 11 May 2011 06:08:40 +0000 Subject: [PATCH] Polish @Configuration Javadoc Add note that nested @Configuration classes must be static. --- .../org/springframework/context/annotation/Configuration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java index 2c8e6f40a85..86ef6ee73cc 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java @@ -46,7 +46,8 @@ import org.springframework.stereotype.Component; *
  • Configuration classes must be non-final *
  • Configuration classes must be non-local (may not be declared within a method) *
  • 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} * * * @author Rod Johnson