Neutrino is an addon to Configurate 3.7, adding the following features:
- Upgraded
ObjectMapper(NeutrinoObjectMapper) that adds the following:Defaultannotation, for specifying the default setting as the serialised string when anullobject is assigned, allowing for the prevention of loading of complex objects until it's sure the default is needed.DoNoGenerateannotation, prevents a configuration setting from being generated unless it is not the default.ProcessSettingannotation, for specifying extra transformations that need to be performed on the serialised string before or after object mapping. SomeSettingProcessors to set items in a list as lower case, or to remove the first/character from a setting have been included.- The ability to set a comment processor that can transform the
commentstring in the@Settingannotation into something different, useful for localisation purposes.
Extra TypeSerializers
PatternTypeSerialiserfor retrieving a regexSetTypeSerialiserfor retrieving a set
Whilst this was built for Nucleus, this can be used in any project that uses Configurate.