Package ai.libs.jaicore.basic
Interface IOwnerBasedConfig
-
- All Superinterfaces:
org.aeonbits.owner.Accessible
,org.aeonbits.owner.Config
,org.api4.java.common.control.IConfig
,java.util.Map<java.lang.Object,java.lang.Object>
,org.aeonbits.owner.Mutable
,java.io.Serializable
- All Known Subinterfaces:
IDatabaseConfig
,IOwnerBasedAlgorithmConfig
,IOwnerBasedRandomizedAlgorithmConfig
,IRestDatabaseConfig
public interface IOwnerBasedConfig extends org.aeonbits.owner.Mutable, org.aeonbits.owner.Accessible, org.api4.java.common.control.IConfig
-
-
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 <T extends IOwnerBasedAlgorithmConfig>
Tcopy(java.lang.Class<T> configInterface)
default IOwnerBasedConfig
loadPropertiesFromFile(java.io.File file)
Reads properties of a config from a config file.default IOwnerBasedConfig
loadPropertiesFromFileArray(java.io.File... files)
default IOwnerBasedConfig
loadPropertiesFromList(java.util.List<java.lang.String> propertiesList)
Loads a properties config from a list of property assignments.default IOwnerBasedConfig
loadPropertiesFromResource(java.lang.String resourcePath)
Loads properties from a resource (instead of a file).-
Methods inherited from interface org.aeonbits.owner.Accessible
fill, getProperty, getProperty, list, list, propertyNames, store, storeToXML
-
-
-
-
Method Detail
-
loadPropertiesFromFile
default IOwnerBasedConfig loadPropertiesFromFile(java.io.File file)
Reads properties of a config from a config file.- Specified by:
loadPropertiesFromFile
in interfaceorg.api4.java.common.control.IConfig
- 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.
-
loadPropertiesFromFileArray
default IOwnerBasedConfig loadPropertiesFromFileArray(java.io.File... files)
-
loadPropertiesFromResource
default IOwnerBasedConfig loadPropertiesFromResource(java.lang.String resourcePath) throws java.io.IOException
Loads properties from a resource (instead of a file).- Specified by:
loadPropertiesFromResource
in interfaceorg.api4.java.common.control.IConfig
- 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 IOwnerBasedConfig loadPropertiesFromList(java.util.List<java.lang.String> propertiesList)
Loads a properties config from a list of property assignments.- Specified by:
loadPropertiesFromList
in interfaceorg.api4.java.common.control.IConfig
- Parameters:
propertiesList
- The list of property assignments.
-
copy
default <T extends IOwnerBasedAlgorithmConfig> T copy(java.lang.Class<T> configInterface)
-
-