Powerful java configuration library for toml, yaml, hocon, json and in-memory configurations. Serialization/deserialization framework.
LGPL-3.0 License
Bot releases are visible (Hide)
Published by TheElectronWill about 6 years ago
In almost all cases, this release is backward-compatible with previous 3.x.x code. However, there are some changes related to the conversion of null values and Scala methods. They could, in very specific cases, force you to modify your code.
getInt
, getLong
, etc. in UnmodifiableConfig
and UnmodifiableConfig.Entry
UnmodifiableConfig.Entry
NULL_OBJECT
with the methods getRaw(path)
and isNull(path)
ConversionTable
now receives NULL_OBJECT
instead of null
if the value exist but "is null".FileConfig.autosave()
works againlong
from an Integer
value or vice-versa$minus$eq
and $plus$eq
methods which couldn't be called nicely from ScalaPublished by TheElectronWill over 6 years ago
Published by TheElectronWill over 6 years ago
File
now work on java.nio.file.Path
too!emptyDataAccepted
for the JSON parserPublished by TheElectronWill over 6 years ago
See #39 and #40
Published by TheElectronWill over 6 years ago
NULL_OBJECT
in the config's underlying HashMap. These NULL_OBJECTs aren't visible when getting/setting the configuration's values, but they are visible when using the underlying map.autoreload
and autosave
togethergetOrElse
which is a getter with a default value, see #34ConfigFormat
and the generics everywhere! Moving from ConfigFormat<C extends D, D extends Config, W extends UnmodifiableConfig>
to ConfigFormat<C extends Config>
.Published by TheElectronWill over 6 years ago
Fixed #31
Published by TheElectronWill almost 7 years ago
Published by TheElectronWill about 7 years ago
Published by TheElectronWill about 7 years ago
Changes from version 3.0:
apply(path)
from Config to UnmodifiableConfig - which is what should have been done in v3.0, since the method get
is in UnmodifiableConfig.+=
and -=
to ConversionTable@SpecValidator
, which allows you to define a custom validator class for a field. There is an example of this feature here.Published by TheElectronWill about 7 years ago
Changes from the beta version:
apply
calls get, update
calls set, and +=
calls addPublished by TheElectronWill about 7 years ago
This is a major version with a lot of breaking changes from the previous versions:
config.setValue
is replaced by config.set
Config.ofConcurrent(...)
or ConfigFormat.createConcurrentConfig()
.Code examples are available in the directory examples/src/main/java
.
Few changes are expected between this beta and the final release: mostly bugfixes and small adjustements.
Published by TheElectronWill about 7 years ago
Fix a ConcurrentModificationException that occurs when ConfigSpec.correct(Config) removes a value from the config.
Published by TheElectronWill about 7 years ago
Fix a ConcurrentModificationException that occurs when ConfigSpec.correct(Config) removes a value from the config.
Published by TheElectronWill about 7 years ago
This is a bugfix release for the 2.1 branch. It resolves:
Published by TheElectronWill about 7 years ago
This is a bugfix release for the 2.0 branch. It resolves the following issues, all related to the toml module:
#21, #22 , #23 and #24
Published by TheElectronWill over 7 years ago
SimpleCommentedConfig was in the default package. It has been moved to the package "com.electronwill.core".
Published by TheElectronWill over 7 years ago
Fixes issue #21: Exception when a comment is at the end of the file.
Published by TheElectronWill over 7 years ago
getComments
and setComments
which resolves #20clearComments
to clear the comments but not the values.Published by TheElectronWill over 7 years ago
Summary: Night-Config is now much more powerful and also more easy to use!
Changes since the previous big version (stable 1.x):
Config.checked()
returns a checked view of the configUnmodifiableConfig.entrySet()
CommentedConfig.commentMap()
asMap()
to valueMap()
asUnmodifiable()
to unmodifiable()
readFrom(File)
to parse(File)
writeTo(File)
to write(File)
parseConfig
to parse
writeConfig
to write
Changes since the last beta version (2.0-beta3):
Published by TheElectronWill over 7 years ago
removeComment
returns the previous comment