From 2764024351db5082ce5e8f1664a37d1629a56a69 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Tue, 15 Dec 2009 07:24:12 +0000 Subject: [PATCH] JavaDoc on AnnotationConfigApplicationContext#scan(String...) --- .../context/annotation/AnnotationConfigApplicationContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java index 0b0a9053c46..2427d6c174e 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java @@ -112,7 +112,10 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex /** * Perform a scan within the specified base packages. + * Note that {@link AnnotationConfigApplicationContext#refresh()} must be + * called in order for the context to fully process the new class. * @param basePackages the packages to check for annotated classes + * @see #refresh() */ public void scan(String... basePackages) { this.scanner.scan(basePackages);