Interface Activatable

All Known Implementing Classes:
AlpineArgumentResolver, AlpineCommand, AlpineConfig, AlpineEngine, AlpineIntegration, AlpineStore, VaultIntegration

public interface Activatable
Forms the basis of the automatic activation functionality for all systems.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    activate(@NotNull AlpinePlugin context)
    Activate this object.
    default boolean
    Can this Activatable object be deactivated?
    void
    deactivate(@NotNull AlpinePlugin context)
    Deactivate this object.
    boolean
    Is this object active?
  • Method Details

    • activate

      void activate(@NotNull @NotNull AlpinePlugin context)
      Activate this object.
      Parameters:
      context - The plugin which initiated the request
    • deactivate

      void deactivate(@NotNull @NotNull AlpinePlugin context)
      Deactivate this object.
      Parameters:
      context - The plugin which initiated the request
    • canDeactivate

      default boolean canDeactivate()
      Can this Activatable object be deactivated?
      Returns:
      Whether this activatable object can be deactivated.
    • isActive

      boolean isActive()
      Is this object active?
      Returns:
      Whether the object is active