Class BaseConfigurable
java.lang.Object
com.codingchili.core.configuration.BaseConfigurable
- All Implemented Interfaces:
Configurable,Serializable
- Direct Known Subclasses:
ServiceConfigurable
Represents a basic configurable that is saveable.
- See Also:
- Serialized Form
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()Get the path of a loaded configuration file.Set the path of a configurable to allow saving to the same location it was loaded from.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.codingchili.core.configuration.Configurable
save, serialize
-
Field Details
-
path
-
-
Constructor Details
-
BaseConfigurable
public BaseConfigurable() -
BaseConfigurable
-
-
Method Details
-
getPath
Description copied from interface:ConfigurableGet the path of a loaded configuration file.- Specified by:
getPathin interfaceConfigurable- Returns:
- the directory path to the configuration file.
-
setPath
Description copied from interface:ConfigurableSet the path of a configurable to allow saving to the same location it was loaded from.- Specified by:
setPathin interfaceConfigurable- Parameters:
path- the path to the configurable on disk for reloading and saving.- Returns:
- fluent
-