Class AttributeConfigurable

java.lang.Object
com.codingchili.core.configuration.Attributes
com.codingchili.core.configuration.AttributeConfigurable
All Implemented Interfaces:
Configurable, Serializable

public class AttributeConfigurable extends Attributes implements Configurable
Simple configurable that maps to a json object.
See Also:
Serialized Form
  • Constructor Details

    • AttributeConfigurable

      public AttributeConfigurable()
  • Method Details

    • getPath

      public String getPath()
      Description copied from interface: Configurable
      Get the path of a loaded configuration file.
      Specified by:
      getPath in interface Configurable
      Returns:
      the directory path to the configuration file.
    • setPath

      public AttributeConfigurable setPath(String path)
      Description copied from interface: Configurable
      Set the path of a configurable to allow saving to the same location it was loaded from.
      Specified by:
      setPath in interface Configurable
      Parameters:
      path - the path to the configurable on disk for reloading and saving.
      Returns:
      fluent