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 TypeMethodDescriptionvoid
activate
(@NotNull AlpinePlugin context) Activate this object.default boolean
Can this Activatable object be deactivated?void
deactivate
(@NotNull AlpinePlugin context) Deactivate this object.boolean
isActive()
Is this object active?
-
Method Details
-
activate
Activate this object.- Parameters:
context
- The plugin which initiated the request
-
deactivate
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
-