From 1668d16b6aa3ae616cf8c3b1824ef40aafb79ba0 Mon Sep 17 00:00:00 2001 From: Eran Landau Date: Wed, 17 Aug 2016 13:27:54 -0700 Subject: [PATCH 1/2] Put back method that was removed from previous PR --- .../main/java/com/netflix/archaius/ConfigProxyFactory.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java b/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java index 43ccb5b90..99e7d66ed 100644 --- a/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java +++ b/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java @@ -80,6 +80,13 @@ public ConfigProxyFactory(Config config, Decoder decoder, PropertyFactory factor this.propertyFactory = factory; } + @Deprecated + public ConfigProxyFactory(Config config, PropertyFactory factory) { + this.decoder = config.getDecoder(); + this.config = config; + this.propertyFactory = factory; + } + /** * Create a proxy for the provided interface type for which all getter methods are bound * to a Property. From 479fde34bde4be028efc220b34eea86fb6b16ad6 Mon Sep 17 00:00:00 2001 From: Eran Landau Date: Wed, 17 Aug 2016 13:30:25 -0700 Subject: [PATCH 2/2] Re-add another method that should have been deprecated --- .../main/java/com/netflix/archaius/ConfigProxyFactory.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java b/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java index 99e7d66ed..b278377bb 100644 --- a/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java +++ b/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java @@ -87,6 +87,13 @@ public ConfigProxyFactory(Config config, PropertyFactory factory) { this.propertyFactory = factory; } + @Deprecated + public ConfigProxyFactory(Config config) { + this.decoder = config.getDecoder(); + this.config = config; + this.propertyFactory = DefaultPropertyFactory.from(config); + } + /** * Create a proxy for the provided interface type for which all getter methods are bound * to a Property.