Class AlpineConfig

java.lang.Object
co.crystaldev.alpinecore.framework.config.AlpineConfig
All Implemented Interfaces:
Activatable

public abstract class AlpineConfig extends Object implements 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 Details

    • AlpineConfig

      public AlpineConfig()
  • Method Details

    • getFileName

      public String 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

      public final void activate(@NotNull @NotNull AlpinePlugin context)
      Description copied from interface: Activatable
      Activate this object.
      Specified by:
      activate in interface Activatable
      Parameters:
      context - The plugin which initiated the request
    • deactivate

      public final void deactivate(@NotNull @NotNull AlpinePlugin context)
      Description copied from interface: Activatable
      Deactivate this object.
      Specified by:
      deactivate in interface Activatable
      Parameters:
      context - The plugin which initiated the request