Quick Start
Starting with Coat is easy. Just write an interface with accessor methods for each field that should be configurable. The return values of the accessor methods can be of any type. Many types are already supported out of the box, but it is possible to use custom types.
The source of the configuration data doesn’t matter. While it is
mainly intended to be used for the usual Java .properties
files, it can
be used for any data that is composed of simple String-based
key-value-mappings.
Annotate the interface with the corresponding Annotations and let the Coat annotation processor generate a concrete implementation of the interface.
That implementation can then be used to retrieve correctly typed config values without any additional effort.
Prerequisites