Commit Graph

30 Commits (38b1a1aca4d37779404f18b5e976b316fbbb3d6a)
 

Author SHA1 Message Date
Exlll 38b1a1aca4 Added @Format annotation
This annotation can be used to apply a FieldNameFormatter
to a Configuration without having to instantiate a Properties
object. The FieldNameFormatter returned by the annotation
takes precedence over the value returned by the Properties object.

Added FieldNameFormatters.UPPER_UNDERSCORE
6 years ago
Exlll 58b81f3314 Added FieldFilter
If your configuration has a lot of fields and you want to exclude some
of these fields without making them final, static or transient, you can
configure your properties object to use additional FieldFilters.

A FieldFilter filters the fields of a configuration class by a specified
criterion. For example, if you only want to include fields whose names
don't start with 'ignore', you would add the following filter:

YamlProperties properties = YamlProperties.builder()
                .addFilter(field -> !field.getName().startsWith("ignore"))
                // ...
                .build();
6 years ago
Exlll b8caedc86d Fix: Converting back fails for nested collections of complex ConfigurationElements
Note that you now have to set a nesting level when using nested
collections that require the ElementType annotation.
6 years ago
Exlll ee53d0c609 Fix: Comments not saved if FieldNameFormatter is used 6 years ago
Exlll 9681114e69
Create LICENSE 6 years ago
Exlll 7f600834ff Improve documentation 6 years ago
Exlll 71a6052e29 Make ConfigLib Java 8 compatible 6 years ago
Exlll f4795ca21a Update gradle-wrapper to Gradle version 4.8 6 years ago
Exlll 88838d5b96 Update .travis.yml to Java 10 6 years ago
Exlll 49e5b56b5c Update ConfigLib to version 2.0.0 6 years ago
Exlll e1b629d5df update version 7 years ago
Exlll e4f604a2cd fix: long files not read correctly 7 years ago
Exlll 108133abc0 added versioning 7 years ago
Exlll 9ae4731de4 fix postLoadHook not executed 7 years ago
Exlll a61363aefd fix type conversion 8 years ago
Exlll 71f342783b clean-up, improvements, fixes, docs 8 years ago
Exlll 6b72d6293c support for lists, sets and maps of custom objects 8 years ago
Exlll 0e9b474db1 better support for custom classes 8 years ago
Exlll 0dca3f614f serialize custom classes 8 years ago
Exlll 5352d4183c better usage example 8 years ago
Exlll 8c83bcb09d removed baseName property 8 years ago
Exlll 2c2cbe670e added local gradle scripts 8 years ago
Exlll 117e05bccd changed basename 8 years ago
Exlll cd2954f0ae added postload hook 8 years ago
Exlll fbca8cdcb0 renamed modules 8 years ago
Exlll e7ce5ad632 JavaDoc added 8 years ago
Exlll 3bf8e64d93 added .travis.yml 8 years ago
Exlll 720ca8f47f added loadAndSave method 8 years ago
Exlll 174fd25fe5 Create README.md 8 years ago
Exlll abfd8ce998 Initial commit 8 years ago