archaius
archaius copied to clipboard
A way to disable default PropertiesConfigReader
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