Packages com.phoenixplugins.sdk.api plugin extensions

Interface ExtensionRegistry


public interface ExtensionRegistry
Manages the lifecycle of extensions, including loading, enabling, disabling, and unloading extensions.
  • Method Details

    • getPlugin

      Plugin getPlugin()
      Gets the plugin that this extension manager is associated with.
      Returns:
      the JavaPlugin instance.
    • registerExtension

      boolean registerExtension(Extension extension)
      Registers an extension from the given object.
      Parameters:
      extension - the extension to register.
      Returns:
      true if the extension was loaded successfully, false otherwise.
    • loadExtension

      void loadExtension(Extension extension)
      Enables a specific extension.
      Parameters:
      extension - the extension to enable.
    • unloadExtension

      void unloadExtension(Extension extension)
      Disables a specific extension.
      Parameters:
      extension - the extension to disable.
    • unregisterExtension

      void unregisterExtension(Extension extension) throws IOException
      Unloads a specific extension, removing it from memory.
      Parameters:
      extension - the extension to unload.
      Throws:
      IOException
    • getExtension

      <T extends Extension> T getExtension(Class<T> extensionClazz)
      Retrieves an extension by its class type.
      Type Parameters:
      T - the extension type.
      Parameters:
      extensionClazz - the class type of the extension.
      Returns:
      the extension instance if found, otherwise null.
    • getExtension

      Extension getExtension(String name)
      Retrieves an extension by its name.
      Parameters:
      name - the name of the extension.
      Returns:
      the extension instance if found, otherwise null.
    • isExtensionEnabled

      boolean isExtensionEnabled(String name)
      Checks if an extension is currently enabled.
      Parameters:
      name - the name of the extension.
      Returns:
      true if the extension is enabled, false otherwise.
Last updated 10 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping