[infinispan-dev] configuration toProperties
Mircea Markus
mmarkus at redhat.com
Tue Nov 19 13:37:03 EST 2013
On Nov 19, 2013, at 4:39 PM, Dan Berindei <dan.berindei at gmail.com> wrote:
> I think the properties format is too closely tied to your particular use case - in general having a long prefix on every line would actual settings harder to see than in a structured format like XML/JSON/YAML, not easier. And if the cache name is repeated on every line, you can't easily compare the configuration of two nodes or of two caches - all the lines would be different.
>
> I'm also not sure about implementing toProperties()/append(StringBuilder)/etc. in every configuration class instead of using reflection. We already have a lot of changes to make when we add/modify a setting, I'd rather not make that even harder than it is.
+1. I think an reflection based approach (toProperties implemented in the base config class and iterating over all defined fields) should be easy to implement and solve the problem .
Cheers,
--
Mircea Markus
Infinispan lead (www.infinispan.org)
More information about the infinispan-dev
mailing list