diff --git a/spring-framework-reference/src/beans-classpath-scanning.xml b/spring-framework-reference/src/beans-classpath-scanning.xml index c49e7a8b678..ed5d472cb45 100644 --- a/spring-framework-reference/src/beans-classpath-scanning.xml +++ b/spring-framework-reference/src/beans-classpath-scanning.xml @@ -4,23 +4,21 @@
Classpath scanning and managed components - - - Most examples foo bar in this chapter use XML to specify the - configuration metadata that produces each - BeanDefinition within the Spring container. - The previous section () - demonstrates how to provide a lot of the configuration metadata through - source-level annotations. Even in those examples, however, the "base" bean - definitions are explicitly defined in the XML file, while the annotations - only drive the dependency injection. This section describes an option for - implicitly detecting the candidate components by - scanning the classpath. Candidate components are classes that match against - a filter criteria and have a corresponding bean definition registered with - the container. This removes the need to use XML to perform bean - registration, instead you can use annotations (for example @Component), - AspectJ type expressions, or your own custom filter criteria to select which - classes will have bean definitions registered with the container. + Most examples in this chapter use XML to specify the configuration + metadata that produces each BeanDefinition + within the Spring container. The previous section + () demonstrates how to provide a + lot of the configuration metadata through source-level annotations. Even + in those examples, however, the "base" bean definitions are explicitly + defined in the XML file, while the annotations only drive the dependency + injection. This section describes an option for implicitly detecting the + candidate components by scanning the classpath. + Candidate components are classes that match against a filter criteria and + have a corresponding bean definition registered with the container. This + removes the need to use XML to perform bean registration, instead you can + use annotations (for example @Component), AspectJ type expressions, or your + own custom filter criteria to select which classes will have bean + definitions registered with the container. Starting with Spring 3.0, many features provided by the