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
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default <T extends IOwnerBasedAlgorithmConfig>
      T
      copy​(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
      • Methods inherited from interface org.api4.java.common.control.IConfig

        setProperty
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from interface org.aeonbits.owner.Mutable

        addPropertyChangeListener, addPropertyChangeListener, clear, load, load, removeProperty, removePropertyChangeListener, setProperty
    • Method Detail

      • loadPropertiesFromFile

        default IOwnerBasedConfig loadPropertiesFromFile​(java.io.File file)
        Reads properties of a config from a config file.
        Specified by:
        loadPropertiesFromFile in interface org.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 interface org.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 interface org.api4.java.common.control.IConfig
        Parameters:
        propertiesList - The list of property assignments.