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
-
Constructor Summary
-
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, wait
Methods 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:Configurable
Get the path of a loaded configuration file.- Specified by:
getPath
in interfaceConfigurable
- Returns:
- the directory path to the configuration file.
-
setPath
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 interfaceConfigurable
- Parameters:
path
- the path to the configurable on disk for reloading and saving.- Returns:
- fluent
-