forked from Netflix/ribbon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple core library from archaius1 **Why?** Archaius1 is a deprecated library that also promotes static access patterns. This PR is a first step of many to first decouple the library. Subsequent PRs will address static access patterns. **How?** - Upgrade from Java 1.7 to 1.8 - Move all archaius specific code into ribbon-archaius - Static ClientConfigFactory discoverable via the ServiceLoader - Add default values to IClientConfigKey
- Loading branch information
Showing
34 changed files
with
301 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
dependencies { | ||
compile 'org.slf4j:slf4j-api:1.6.4' | ||
compile 'com.google.code.findbugs:annotations:2.0.0' | ||
compile "com.google.guava:guava:${guava_version}" | ||
compile 'commons-configuration:commons-configuration:1.8' | ||
compile 'commons-lang:commons-lang:2.6' | ||
compile "com.netflix.archaius:archaius-core:${archaius_version}" | ||
|
||
compile project(':ribbon-core') | ||
|
||
testCompile 'junit:junit:4.11' | ||
} |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
ribbon-archaius/src/main/java/com/netflix/client/config/ArchaiusClientConfigFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.netflix.client.config; | ||
|
||
public class ArchaiusClientConfigFactory implements ClientConfigFactory { | ||
@Override | ||
public IClientConfig newConfig() { | ||
return new DefaultClientConfigImpl(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...chaius/src/main/resources/META-INF/services/com.netflix.client.config.ClientConfigFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.netflix.client.config.ArchaiusClientConfigFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.