public class CapabilityServiceImplementation extends java.lang.Object implements CapabilityService
CapabilityService
.
Only one instance exists per runtime in order to notify others when the plugin enables.
CapabilityService.CapabilityServiceHolder
Modifier and Type | Method and Description |
---|---|
static void |
initialize() |
static void |
notifyAboutEnable(boolean isEnabled) |
void |
registerEnableListener(java.util.function.Consumer<java.lang.Boolean> enableListener)
Register a method to be called when Plan reloads.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance, hasCapability
public static void initialize()
public static void notifyAboutEnable(boolean isEnabled)
public void registerEnableListener(java.util.function.Consumer<java.lang.Boolean> enableListener)
CapabilityService
registerEnableListener
in interface CapabilityService
enableListener
- The boolean given to the method tells if Plan has enabled successfully.