Removed OrderedEnvironmentRepository interface, and applied other review feedback.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user