Interface ExtensionHandlerManager


  • @Role
    public interface ExtensionHandlerManager
    Used as proxy behind all extension handlers.
    Since:
    4.0M1
    Version:
    $Id: dae92183d703e26f597e7609442a2c62fc41b629 $
    • Method Detail

      • install

        void install​(LocalExtension localExtension,
                     String namespace,
                     org.xwiki.job.Request request)
              throws InstallException
        Install the provided local extension.
        Parameters:
        localExtension - the extension to install
        namespace - the namespace where to install the extension
        request - extra parameters
        Throws:
        InstallException - error when trying to install the extension
      • uninstall

        void uninstall​(InstalledExtension localExtension,
                       String namespace,
                       org.xwiki.job.Request request)
                throws UninstallException
        Uninstall the provided local extension.
        Parameters:
        localExtension - the extension to uninstall
        namespace - the namespace from where to uninstall the extension
        request - extra parameters
        Throws:
        UninstallException - error when trying to uninstall the extension
      • upgrade

        void upgrade​(Collection<InstalledExtension> previousLocalExtensions,
                     LocalExtension newLocalExtension,
                     String namespace,
                     org.xwiki.job.Request request)
              throws InstallException
        Upgrade the provided local extension.
        Parameters:
        previousLocalExtensions - the previous installed versions of the extension
        newLocalExtension - the extension to install
        namespace - the namespace from where to uninstall the extension
        request - extra parameters
        Throws:
        InstallException - error when trying to upgrade the extension
      • initialize

        void initialize​(LocalExtension localExtension,
                        String namespace)
                 throws ExtensionException
        Initialize the provided local extension (during application startup, reinitialization...).
        Parameters:
        localExtension - the extension to install
        namespace - the namespace where to install the extension
        Throws:
        ExtensionException - error when trying to initialize the extension