Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.sdk.api plugin extensions
com.phoenixplugins.sdk.api.plugin.extensions

Interface ExtensionRegistry



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

      • 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 about 4 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more