What are the frameworks for working with the configuration, not counting the Apache Commons Configuration?
Are there any additional libraries to the Apache Commons Configuration for serialization / deserialization, documentation?

Closed due to the fact that the issue is too general a participant Nofate December 24, '15 at 15:32 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    There is for example Typesafe Config .

    It is not very clear that you are going to serialize and document.

    • There is a valid class MyConfig, with a set of fields. It is serialized to the myconfig.xml file using JAXB, then read accordingly. If there were a couple of small configs, there would be no particular issues. I would like to: transfer the settings to the database (fully or partially), save configs as classes, describe the fields in the config with notation (type, comment, valid values, etc.), perform annotations on the basis of annotations when serializing / deserializing, annotations form the documentation. - Russtam
    • @Rustam I see no reason to put configs in Java serializable code, since this is the same, only with additional conversion (serialization). - a_gura
    • @a_gura if we have a configuration in a serializable Java code, then at least we get the following advantages: type safety, for example HttpClient getHttpClient (MyHttpConfiguration cfg) - you can't drop the left config by chance; usability, config.getPort () instead of config.getInteger ("MyHttpConfiguration.port"); work faster than getting a setting by name. - Russtam
    • @Russtam The speed is not really important for you (unless the time when the application starts is not the most important KPI). Plus in type safety it parries minus need of compilation and serialization. - a_gura
    • @a_gura if in the code the setting is often used, then the speed is important. Compilation has nothing to do with it at all. there is no difference whatsoever that is “wired” in the code - class or parameter names. Configuration loading is rare, so the presence or absence of serialization is not important. Sense argue not see, t.to. everyone does as he likes. I am interested in existing libraries and frameworks in order to produce bicycles as little as possible. - Russtam