archaius icon indicating copy to clipboard operation
archaius copied to clipboard

A way to disable default PropertiesConfigReader

Open xbaran opened this issue 7 years ago • 0 comments

I find myself unable to disable default PropertiesConfigReader reader in InternalArchaiusModule which is package private and final.

I think more suitable place for default reader config is in ArchaiusModule as protected method.

So when I want to change PropertiesConfigReader for TypesafeConfigReader it would look like this:

install(new ArchaiusModule() {
@Override
protected void bindDefaultReaders() {}
@Override
protected void configureArchaius() {    Multibinder.newSetBinder(this.binder(),ConfigReader.class).addBinding().to(TypesafeConfigReader.class).asEagerSingleton();
}
});

Well I have another fix for TypesafeConfigReader that support Lists,Maps and Sets

xbaran avatar Dec 18 '17 16:12 xbaran