archaius
archaius copied to clipboard
Library for configuration management API
I'm using the URLConfigReader to read from an HTTP data source. I need to set the 'Content-Type' or 'Accept' header to return the data in the correct format. However, I...
Implemented multiline support (#477) Adds support for multiline values for url configuration sources only. Each url source supports multiple values across multiple lines for the same key. Multiple lines from...
[PropertiesConfigReader.canLoad](https://github.com/Netflix/archaius/blob/7ca3bb0f709f2e9c3b7de002fa9a118e5ef78597/archaius2-core/src/main/java/com/netflix/archaius/readers/PropertiesConfigReader.java#L114) will never return false because `getResources` never returns `null`. ```java @Override public boolean canLoad(ClassLoader loader, String name) { return getResources(loader, name) != null; } ``` In [`getResources`](https://github.com/Netflix/archaius/blob/2.x/archaius2-core/src/main/java/com/netflix/archaius/readers/PropertiesConfigReader.java#L122) you see:...
JDCConfigReader of 2.x branch implements "Callable" that is incomaptible to PollingDynamicConfig which needs "Callable\" like URLConfigReader impements. JDCConfigReader should be changed to implement "Callable\\" instead.
After upgrading to 2.2.0, all my prefixed configs are broken. I think the issue comes from a bug in `containsKey`, for which I proposed this patch: https://github.com/Netflix/archaius/pull/504
Why archaius need to declare Dynamic Property firstly? Can I use such code as following in my method directly? void myMethod(){ String v = DynamicPropertyFactory.getInstance().getStringProperty("key1", "default").get(); }
Provided that there is following etcd configuration ``` etcdctl ls --recursive /global /global/key1 /global/dir1 ``` ``` etcdctl get /global/key1 value ``` ``` etcdctl get /global/dir1 /global/dir1: is a directory ```...
``` java.lang.NoClassDefFoundError: scala/Product$class at com.netflix.config.scala.CallbackWrapper.(DynamicProperty.scala:84) at com.netflix.config.scala.PropertyBox.addCallback(DynamicProperty.scala:97) at com.netflix.config.scala.DynamicProperty$class.addCallback(DynamicProperty.scala:68) at com.netflix.config.scala.DynamicStringProperty.addCallback(DynamicStringProperty.scala:36) at ......... Caused by: java.lang.ClassNotFoundException: scala.Product$class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 31 more ``` Scala 2.12 has...
Hi, i tried to implement a property listener to observe the changing in a String property, but the listener is invoked also when the new value is the same of...
Reference: https://github.com/Netflix/archaius/blob/2.x/archaius2-core/src/main/java/com/netflix/archaius/ConfigProxyFactory.java#L229 ConfigProxyFactory will throw an exception if a @DefaultValue is is provided for a Collection. Having the DefaultValue be a String makes it operationally easier to copy and modify...