You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java
+29-27Lines changed: 29 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -27,19 +27,20 @@
27
27
importorg.springframework.util.Assert;
28
28
29
29
/**
30
-
* Standalone application context, accepting annotated classes as input - in particular
31
-
* {@link Configuration @Configuration}-annotated classes, but also plain
30
+
* Standalone application context, accepting <em>component classes</em> as input —
31
+
* in particular {@link Configuration @Configuration}-annotated classes, but also plain
32
32
* {@link org.springframework.stereotype.Component @Component} types and JSR-330 compliant
33
-
* classes using {@code javax.inject} annotations. Allows for registering classes one by
34
-
* one using {@link #register(Class...)} as well as for classpath scanning using
35
-
* {@link #scan(String...)}.
33
+
* classes using {@code javax.inject} annotations.
36
34
*
37
-
* <p>In case of multiple {@code @Configuration} classes, @{@link Bean} methods defined in
38
-
* later classes will override those defined in earlier classes. This can be leveraged to
39
-
* deliberately override certain bean definitions via an extra {@code @Configuration}
40
-
* class.
35
+
* <p>Allows for registering classes one by one using {@link #register(Class...)}
36
+
* as well as for classpath scanning using {@link #scan(String...)}.
41
37
*
42
-
* <p>See @{@link Configuration}'s javadoc for usage examples.
38
+
* <p>In case of multiple {@code @Configuration} classes, {@link Bean @Bean} methods
39
+
* defined in later classes will override those defined in earlier classes. This can
40
+
* be leveraged to deliberately override certain bean definitions via an extra
41
+
* {@code @Configuration} class.
42
+
*
43
+
* <p>See {@link Configuration @Configuration}'s javadoc for usage examples.
43
44
*
44
45
* @author Juergen Hoeller
45
46
* @author Chris Beams
@@ -78,20 +79,21 @@ public AnnotationConfigApplicationContext(DefaultListableBeanFactory beanFactory
78
79
79
80
/**
80
81
* Create a new AnnotationConfigApplicationContext, deriving bean definitions
81
-
* from the given annotated classes and automatically refreshing the context.
82
-
* @param annotatedClasses one or more annotated classes,
83
-
* e.g. {@link Configuration @Configuration} classes
82
+
* from the given component classes and automatically refreshing the context.
83
+
* @param componentClasses one or more component classes — for example,
0 commit comments