1

I would like to configure an object's properties at runtime either via a properties file, possibly XML (even though it can be a little more verbose). The properties may be nested, so I think I would use something like Apache's Bean Utils.

I was wondering what other formats are out there instead of properties and xml.

Thanks,

Walter

1 Answer 1

1
Sign up to request clarification or add additional context in comments.

2 Comments

+1 for JSON. I'm not a big fan of indent-sensitive YAML though.
Well modern YAML can actually be written with curly braces and ends up being mostly upward-compatible from JSON. Plus YAML is a lot richer and allows encoding of data types, re-references, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.