Class BaseConfigurable

java.lang.Object
com.codingchili.core.configuration.BaseConfigurable
All Implemented Interfaces:
Configurable, Serializable
Direct Known Subclasses:
ServiceConfigurable

public class BaseConfigurable extends Object implements Configurable
Represents a basic configurable that is saveable.
See Also:
Serialized Form
  • Field Details

    • path

      protected String path
  • Constructor Details

    • BaseConfigurable

      public BaseConfigurable()
    • BaseConfigurable

      public BaseConfigurable(String path)
  • 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 BaseConfigurable 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