Class AlpineConfig
java.lang.Object
co.crystaldev.alpinecore.framework.config.AlpineConfig
- All Implemented Interfaces:
Activatable
A wrapper around ConfigLib to allow for
automatic activation by the framework.
Inheritors should never be manually instantiated.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
activate
(@NotNull AlpinePlugin context) Activate this object.final void
deactivate
(@NotNull AlpinePlugin context) Deactivate this object.Gets the name for the file that this configuration should be saved to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.crystaldev.alpinecore.framework.Activatable
canDeactivate, isActive
-
Constructor Details
-
AlpineConfig
public AlpineConfig()
-
-
Method Details
-
getFileName
Gets the name for the file that this configuration should be saved to.Inheritors must override this if they wish to change the name from its default.
- Returns:
- The name of the file
-
activate
Description copied from interface:Activatable
Activate this object.- Specified by:
activate
in interfaceActivatable
- Parameters:
context
- The plugin which initiated the request
-
deactivate
Description copied from interface:Activatable
Deactivate this object.- Specified by:
deactivate
in interfaceActivatable
- Parameters:
context
- The plugin which initiated the request
-