Package ai.libs.jaicore.basic
Interface IConfig
-
- All Superinterfaces:
org.aeonbits.owner.Config
,org.aeonbits.owner.Mutable
,java.io.Serializable
- All Known Subinterfaces:
IAlgorithmConfig
,IDatabaseConfig
,IRandomAlgorithmConfig
public interface IConfig extends org.aeonbits.owner.Mutable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.aeonbits.owner.Config
org.aeonbits.owner.Config.ConverterClass, org.aeonbits.owner.Config.DecryptorClass, org.aeonbits.owner.Config.DefaultValue, org.aeonbits.owner.Config.DisableableFeature, org.aeonbits.owner.Config.DisableFeature, org.aeonbits.owner.Config.EncryptedValue, org.aeonbits.owner.Config.HotReload, org.aeonbits.owner.Config.HotReloadType, org.aeonbits.owner.Config.Key, org.aeonbits.owner.Config.LoadPolicy, org.aeonbits.owner.Config.LoadType, org.aeonbits.owner.Config.PreprocessorClasses, org.aeonbits.owner.Config.Separator, org.aeonbits.owner.Config.Sources, org.aeonbits.owner.Config.TokenizerClass
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default IConfig
loadPropertiesFromFile(java.io.File file)
Reads properties of a config from a config file.default IConfig
loadPropertiesFromList(java.util.List<java.lang.String> propertiesList)
Loads a properties config from a list of property assignments.default IConfig
loadPropertiesFromResource(java.lang.String resourcePath)
Loads properties from a resource (instead of a file).
-
-
-
Method Detail
-
loadPropertiesFromFile
default IConfig loadPropertiesFromFile(java.io.File file)
Reads properties of a config from a config file.- Parameters:
file
- The file to read in as properties.- Throws:
java.io.IOException
- Throws an IOException if an issue occurs while reading in the properties from the given file.
-
loadPropertiesFromResource
default IConfig loadPropertiesFromResource(java.lang.String resourcePath) throws java.io.IOException
Loads properties from a resource (instead of a file).- Parameters:
resourcePath
- The path to the resource.- Throws:
java.io.IOException
- Throws an IOException if an issue occurs while reading in the properties from the given resource.
-
loadPropertiesFromList
default IConfig loadPropertiesFromList(java.util.List<java.lang.String> propertiesList)
Loads a properties config from a list of property assignments.- Parameters:
propertiesList
- The list of property assignments.
-
-