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: docs/framework-spring_auto_reconfiguration.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
# Spring Auto Reconfiguration Framework
2
-
The Spring Auto Reconfiguration Framework causes an application to be automatically reconfigured to work with configured cloud services.
1
+
# Spring Auto-reconfiguration Framework
2
+
The Spring Auto-reconfiguration Framework causes an application to be automatically reconfigured to work with configured cloud services.
3
3
4
4
<table>
5
5
<tr>
@@ -13,10 +13,7 @@ The Spring Auto Reconfiguration Framework causes an application to be automatica
13
13
</table>
14
14
Tags are printed to standard output by the buildpack detect script
15
15
16
-
If a `/WEB-INF/web.xml` file exists, the framework will modify it in addition to making the auto reconfiguration JAR available on the classpath. These modifications include:
17
-
18
-
1. Augmenting `contextConfigLocation`. The function starts be enumerating the current `contextConfigLocation`s. If none exist, a default configuration is created with `/WEB-INF/application-context.xml` or `/WEB-INF/<servlet-name>-servlet.xml` as the default. An additional location is then added to the collection of locations; `classpath:META- INF/cloud/cloudfoundry-auto-reconfiguration-context.xml` if the `ApplicationContext` is XML-based, `org.cloudfoundry.reconfiguration.spring.web.CloudAppAnnotationConfigAutoReconfig` if the `ApplicationContext` is annotation-based.
19
-
1. Augmenting `contextInitializerClasses`. The function starts by enumerating the current `contextInitializerClasses`. If none exist, a default configuration is created with no value as the default. The `org.cloudfoundry.reconfiguration.spring.CloudApplicationContextInitializer` class is then added to the collection of classes.
16
+
If a `/WEB-INF/web.xml` file exists, the framework will modify it in addition to making the auto-reconfiguration JAR available on the classpath. This modification consists of adding `org.cloudfoundry.reconfiguration.spring.CloudProfileApplicationContextInitializer`, `org.cloudfoundry.reconfiguration.spring.CloudPropertySourceApplicationContextInitializer`, and `org.cloudfoundry.reconfiguration.spring.CloudAutoReconfigurationApplicationContextInitializer` to the collection of `contextInitializerClasses`.
20
17
21
18
## Configuration
22
19
For general information on configuring the buildpack, refer to [Configuration and Extension][].
@@ -25,8 +22,9 @@ The framework can be configured by modifying the [`config/spring_auto_reconfigur
25
22
26
23
| Name | Description
27
24
| ---- | -----------
28
-
| `repository_root` | The URL of the Auto Reconfiguration repository index ([details][repositories]).
29
-
| `version` | The version of Auto Reconfiguration to use. Candidate versions can be found in [this listing][].
25
+
| `repository_root` | The URL of the Auto-reconfiguration repository index ([details][repositories]).
26
+
| `version` | The version of Auto-reconfiguration to use. Candidate versions can be found in [this listing][].
27
+
| `enabled` | Whether to attempt auto-reconfiguration
30
28
31
29
[Configuration and Extension]: ../README.md#configuration-and-extension
0 commit comments