DATAGEODE-140 - Correct Pool references in 'Runtime configuration using Properties' documentation.

This commit is contained in:
John Blum
2018-08-17 22:25:22 -07:00
parent b2f10c5368
commit 535b9d4be0

View File

@@ -357,9 +357,9 @@ However, `Configurers` are not the only option.
[[bootstrap-annotation-config-properties]] [[bootstrap-annotation-config-properties]]
== Runtime configuration using `Properties` == Runtime configuration using `Properties`
In addition to `Configurers`, each annotation attribute in the annotation-based configuration model is associated In addition to `Configurers`, each annotation attribute in the annotation-based configuration model is associated with
with a corresponding configuration property (prefixed with `spring.data.gemfire.`), which can be declared in a a corresponding configuration property (prefixed with `spring.data.gemfire.`), which can be declared in a Spring Boot
Spring Boot `application.properties` file. `application.properties` file.
Building on the earlier examples, the client's `application.properties` file would define the following Building on the earlier examples, the client's `application.properties` file would define the following
set of properties: set of properties:
@@ -424,9 +424,9 @@ class ServerApplication { .. }
---- ----
The preceding example shows why it is important to "name" your annotation-based beans (other than because it is required The preceding example shows why it is important to "name" your annotation-based beans (other than because it is required
in certain cases). Doing so makes it possible to reference the bean in a Spring context from XML, properties, in certain cases). Doing so makes it possible to reference the bean in the Spring container from XML, properties,
and Java. It is even possible to inject annotation-defined beans into an application class, and Java. It is even possible to inject annotation-defined beans into an application class, for whatever purpose,
for whatever purpose, as the following example demonstrates: as the following example demonstrates:
[source, java] [source, java]
---- ----
@@ -456,19 +456,18 @@ spring.data.gemfire.cache.server.Saturn...
spring.data.gemfire.cache.server.Neptune... spring.data.gemfire.cache.server.Neptune...
---- ----
While there are three named `CacheServers` above, there is one unnamed `CacheServer` property providing the default While there are three named `CacheServers` above, there is also one unnamed `CacheServer` property providing
value for any unspecified value for that property, even for "named" `CacheServers`. So, while "Venus" sets the default value for any unspecified value of that property, even for "named" `CacheServers`. So, while "Venus"
and overrides its own `bind-address`, "Saturn" and "Neptune" inherit from the "unnamed" sets and overrides its own `bind-address`, "Saturn" and "Neptune" inherit from the "unnamed"
`spring.data.gemfire.cache.server.bind-address` property. `spring.data.gemfire.cache.server.bind-address` property.
See an annotation's Javadoc for which annotation attributes support property-based configuration and whether See an annotation's Javadoc for which annotation attributes support property-based configuration
they support "named" properties over default, "unnamed" properties. and whether they support "named" properties over default, "unnamed" properties.
[[bootstrap-annotation-config-properties-of-properties]] [[bootstrap-annotation-config-properties-of-properties]]
=== `Properties` of `Properties` === `Properties` of `Properties`
In the usual Spring fashion, you can even express `Properties` in terms of other `Properties`, whether that is In the usual Spring fashion, you can even express `Properties` in terms of other `Properties`, whether that is by
by using a Spring Boot `application.properties` file or by using the `@Value` annotation in your Java configuration class.
The following example shows a nested property being set in an `application.properties` file: The following example shows a nested property being set in an `application.properties` file:
.Properties of Properties .Properties of Properties