|
28 | 28 | * either the {@code <context:component-scan>} XML element or (as of Spring 3.1) the
|
29 | 29 | * {@code @ComponentScan} annotation. These two options are equivalent to one another, and users may
|
30 | 30 | * choose between them as a matter of convention or preference. Fundamentally, both are declarative
|
31 |
| - * mechanisms for <em>specifying</em> how the Spring container should be configured. A {@code |
| 31 | + * mechanisms for <em>specifying</em> how the Spring container should be configured. A {@code |
32 | 32 | * FeatureSpecification} object, then, is a way of representing this configuration information independent
|
33 | 33 | * of its original source format be it XML, annotations, or otherwise.
|
34 | 34 | *
|
|
79 | 79 | * <p>Typically, a user will call only the constructor and 'mutator' methods of a specification
|
80 | 80 | * object. The accessor/getter methods, however, are typically called only by the specification's
|
81 | 81 | * {@linkplain FeatureSpecificationExecutor executor} for the purpose of populating and registering
|
82 |
| - * bean definitions with the Spring container.For this reason, it is recommended that accessor |
| 82 | + * bean definitions with the Spring container. For this reason, it is recommended that accessor |
83 | 83 | * methods be given package-private visibility. This creates a better experience for users from
|
84 | 84 | * an IDE content-assist point of view as they will see only the public mutator methods, reducing
|
85 | 85 | * any possible confusion.
|
86 | 86 | *
|
87 | 87 | * <p>Implementations should take care to allow for use of string-based bean names, placeholder
|
88 | 88 | * (<code>"${...}"</code>) and SpEL (<code>"#{...}</code>) expressions wherever they may be useful.
|
89 | 89 | * While it is generally desirable to refer to dependent beans in pure Java, in certain cases a
|
90 |
| - * user may wish or need to refer by bean name. For example, the {@code TxAnnotationDriven} specification |
| 90 | + * user may wish or need to refer to a bean by name. For example, the {@code TxAnnotationDriven} specification |
91 | 91 | * referenced above allows for specifying its transaction-manager reference by {@code String} or by
|
92 | 92 | * {@code PlatformTransactionManager} reference. Such strings should always be candidates for placeholder
|
93 |
| - * replacement and SpEL evaluation for maximum configurability as well as parity with the featureset |
| 93 | + * replacement and SpEL evaluation for maximum configurability as well as parity with the feature set |
94 | 94 | * available in Spring XML. With regard to SpEL expressions, users should assume that only expressions
|
95 | 95 | * evaluating to a bean name will be supported. While it is technically possible with SpEL to resolve
|
96 | 96 | * a bean instance, specification executors will not support such use unless explicitly indicated.
|
|
0 commit comments