Removed OrderedEnvironmentRepository interface, and applied other review feedback.

This commit is contained in:
Ryan Baxter
2016-12-20 13:46:46 -05:00
parent 3db105c475
commit 5ebecb60b4
12 changed files with 71 additions and 108 deletions

View File

@@ -576,9 +576,9 @@ spring:
svn:
uri: file:///path/to/svn/repo
order: 2
git:
uri: file:///path/to/git/repo
order: 1
git:
uri: file:///path/to/git/repo
order: 1
----
In addition to each repo specifying a URI, you can also specify an `order` property.
@@ -600,13 +600,7 @@ repo does not contain a branch called `master` the entire request will fail.
It is also possible to provide your own `EnvironmentRepository` bean
to be included as part of a composite environment in addition to
using one of the environment repositories from Spring Cloud. To do this your bean
must implement `OrderedEnvironmentRepository`. For convenience sake, there is
an abstract implementation of this interface you can extend called
`AbstractOrderedEnvironmentRepository`. If you extend `AbstractOrderedEnvironmentRepository`
your environment repository will have the lowest possible precedence by default.
If you would like to change this, make sure you call the `setOrder` method
to set the precedence or override the `getOrder` method to return the order
value you would like your environment repository to have.
must implement both the `EnvironmentRepository` and `Ordered` interfaces.
==== Property Overrides