|
46 | 46 | * interfaces and registers them as {@code MapperFactoryBean}. Note that only interfaces with at
|
47 | 47 | * least one method will be registered; concrete classes will be ignored.
|
48 | 48 | * <p>
|
| 49 | + * This class was a {code BeanFactoryPostProcessor} until 1.0.1 version. It changed to |
| 50 | + * {@code BeanDefinitionRegistryPostProcessor} in 1.0.2. See https://jira.springsource.org/browse/SPR-8269 |
| 51 | + * for the details. |
| 52 | + * <p> |
49 | 53 | * The {@code basePackage} property can contain more than one package name, separated by either
|
50 | 54 | * commas or semicolons.
|
51 | 55 | * <p>
|
|
56 | 60 | * these two properties are null, so all interfaces in the given {@code basePackage} are added as
|
57 | 61 | * mappers.
|
58 | 62 | * <p>
|
59 |
| - * This configurer is usually used with autowire enabled so all the beans it creates are |
| 63 | + * This configurer enables autowire for all the beans that it creates so that they are |
60 | 64 | * automatically autowired with the proper {@code SqlSessionFactory} or {@code SqlSessionTemplate}.
|
61 | 65 | * If there is more than one {@code SqlSessionFactory} in the application, however, autowiring
|
62 | 66 | * cannot be used. In this case you must explicitly specify either an {@code SqlSessionFactory} or
|
63 | 67 | * an {@code SqlSessionTemplate} to use via the <em>bean name</em> properties. Bean names are used
|
64 | 68 | * rather than actual objects because Spring does not initialize property placeholders until after
|
65 |
| - * this class is processed. Passing in an actual object which may require placeholders (i.e. DB user |
66 |
| - * / password) will fail. Using bean names defers actual object creation until later in the startup |
| 69 | + * this class is processed. |
| 70 | + * <p> |
| 71 | + * Passing in an actual object which may require placeholders (i.e. DB user password) will fail. |
| 72 | + * Using bean names defers actual object creation until later in the startup |
67 | 73 | * process, after all placeholder substituation is completed. However, note that this configurer
|
68 | 74 | * does support property placeholders of its <em>own</em> properties. The <code>basePackage</code>
|
69 | 75 | * and bean name properties all support <code>${property}</code> style substitution.
|
@@ -279,10 +285,13 @@ public void afterPropertiesSet() throws Exception {
|
279 | 285 | * {@inheritDoc}
|
280 | 286 | */
|
281 | 287 | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
|
| 288 | + // left intentionally blank |
282 | 289 | }
|
283 | 290 |
|
284 | 291 | /**
|
285 | 292 | * {@inheritDoc}
|
| 293 | + * |
| 294 | + * @since 1.0.2 |
286 | 295 | */
|
287 | 296 | public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
|
288 | 297 | if (this.processPropertyPlaceHolders) {
|
|
0 commit comments