Skip to content

Commit c866c17

Browse files
committed
Polish spring-context-4.2.xsd
1 parent f0ebdde commit c866c17

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

spring-context/src/main/resources/org/springframework/context/config/spring-context-4.2.xsd

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@
9696
PropertySources.
9797
9898
Note that as of Spring 3.1 the system-properties-mode attribute has been removed in
99-
favor of the more flexible PropertySources mechanism. However, Spring 3.1-based
100-
applications may continue to use the 3.0 (and older) versions of the spring-context
101-
schema in order to preserve system-properties-mode behavior. In this case, the
102-
traditional PropertyPlaceholderConfigurer component will be registered instead of the
103-
new PropertySourcesPlaceholderConfigurer.
99+
favor of the more flexible PropertySources mechanism. However, applications may
100+
continue to use the 3.0 (and older) versions of the spring-context schema in order
101+
to preserve system-properties-mode behavior. In this case, the traditional
102+
PropertyPlaceholderConfigurer component will be registered instead of the newer
103+
PropertySourcesPlaceholderConfigurer.
104104
105-
See ConfigurableEnvironment javadoc for more information on using.
105+
See ConfigurableEnvironment javadoc for more information on usage.
106106
]]></xsd:documentation>
107107
<xsd:appinfo>
108108
<tool:annotation>
@@ -126,8 +126,8 @@
126126
will cause a traditional PropertyPlaceholderConfigurer to be registered instead of the
127127
newer PropertySourcesPlaceholderConfigurer variant. In this case, the Spring Environment
128128
and its property sources are not interrogated when resolving placeholders. Users are
129-
encouraged to consider this attribute deprecated, and to take advantage of
130-
Environment/PropertySource mechanisms. See ConfigurableEnvironment javadoc for examples.
129+
encouraged to consider this attribute deprecated, and to take advantage of the
130+
Environment and PropertySource mechanisms. See ConfigurableEnvironment javadoc for examples.
131131
132132
"ENVIRONMENT" indicates placeholders should be resolved against the current Environment and against any local properties;
133133
"NEVER" indicates placeholders should be resolved only against local properties and never against system properties;
@@ -147,7 +147,7 @@
147147
<xsd:attribute name="null-value">
148148
<xsd:annotation>
149149
<xsd:documentation><![CDATA[
150-
A value that should be treated as {@code null} when resolved as a placeholder value:
150+
A value that should be treated as 'null' when resolved as a placeholder value:
151151
e.g. "" (empty String) or "null". By default, no such null value is defined.
152152
]]></xsd:documentation>
153153
</xsd:annotation>
@@ -181,17 +181,16 @@
181181
<xsd:documentation><![CDATA[
182182
Activates various annotations to be detected in bean classes: Spring's @Required and
183183
@Autowired, as well as JSR 250's @PostConstruct, @PreDestroy and @Resource (if available),
184-
JAX-WS's @WebServiceRef (if available), EJB3's @EJB (if available), and JPA's
184+
JAX-WS's @WebServiceRef (if available), EJB 3's @EJB (if available), and JPA's
185185
@PersistenceContext and @PersistenceUnit (if available). Alternatively, you may
186186
choose to activate the individual BeanPostProcessors for those annotations.
187187
188-
Note: This tag does not activate processing of Spring's @Transactional or EJB3's
188+
Note: This tag does not activate processing of Spring's @Transactional or EJB 3's
189189
@TransactionAttribute annotation. Consider the use of the <tx:annotation-driven>
190190
tag for that purpose.
191191
192192
See javadoc for org.springframework.context.annotation.AnnotationConfigApplicationContext
193193
for information on code-based alternatives to bootstrapping annotation-driven support.
194-
from XML.
195194
]]></xsd:documentation>
196195
</xsd:annotation>
197196
</xsd:element>
@@ -200,8 +199,9 @@
200199
<xsd:annotation>
201200
<xsd:documentation><![CDATA[
202201
Scans the classpath for annotated components that will be auto-registered as
203-
Spring beans. By default, the Spring-provided @Component, @Repository,
204-
@Service, and @Controller stereotypes will be detected.
202+
Spring beans. By default, the Spring-provided @Component, @Repository, @Service,
203+
@Controller, @RestController, @ControllerAdvice, and @Configuration stereotypes
204+
will be detected.
205205
206206
Note: This tag implies the effects of the 'annotation-config' tag, activating @Required,
207207
@Autowired, @PostConstruct, @PreDestroy, @Resource, @PersistenceContext and @PersistenceUnit
@@ -211,8 +211,8 @@
211211
for handling those annotations.
212212
213213
Note: You may use placeholders in package paths, but only resolved against system
214-
properties (analogous to resource paths). A component scan results in new bean definition
215-
being registered; Spring's PropertyPlaceholderConfigurer will apply to those bean
214+
properties (analogous to resource paths). A component scan results in new bean definitions
215+
being registered; Spring's PropertySourcesPlaceholderConfigurer will apply to those bean
216216
definitions just like to regular bean definitions, but it won't apply to the component
217217
scan settings themselves.
218218

0 commit comments

Comments
 (0)