VitalPropertiesConfigProcessor
File processor for VitalConfig instances that want to store data in a .properties file. Define this processor in VitalConfig.Info to use it.
@VitalConfig.Info(name = "myconfig.properties", processor = VitalPropertiesConfigProcessor.class)
public class MyPropertiesConfig extends VitalConfig {
}Content copied to clipboard
Properties
Link copied to clipboard
The data object this processor will use to serialize the content. E.g., java.util.Properties for a processor that can write and load .properties configs.
Functions
Link copied to clipboard
Deserializes the given serializedContent to the given type returns an initialized instance of it.
Link copied to clipboard
Loads the given inputStream into the data of this config and returns a Map of all properties to value mappings.
Link copied to clipboard
Link copied to clipboard
Writes the given instance to the file of this config. E.g., the VitalPropertiesConfigProcessor first serialized its content via serialize and then calls write with it.
Writes the given serializedContent to the file of this config.