You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MyConfigmyConfig = ConfigFactory.builder().addSource("file:/myconfig.properties").build().create(MyConfig.class);
Writerwriter = WriterFactory.create("file:~/myconfig.toml");
writer.write(myConfig); //save data in TOML format in user home directory.
The text was updated successfully, but these errors were encountered:
Initial concept:
net.cactusthorn.config.core.Accessible
should get method to provide "meta" information about property e.g. info about separators for collections.Writer
Interface with method:void write(net.cactusthorn.config.core.Accessible accessible)
Writer
implementatin for each file format based on URI pattern (same like with Loaders)WriterFactory
class with static(?) methodWriter create(String uri)
WriterFactory
use SPI to loadWriter
implmenetations (same way like with Loaders)Usage something like that:
The text was updated successfully, but these errors were encountered: