Interface InstallHookProcessor

    • Method Detail

      • registerHooks

        void registerHooks​(Archive archive,
                           ClassLoader classLoader)
                    throws PackageException
        Register all hooks found in the given archive.
        Parameters:
        archive - the archive.
        classLoader - the class loader
        Throws:
        PackageException - if an error occurs.
      • hasHooks

        boolean hasHooks()
        Checks if this process has any hooks registered.
        Returns:
        true if there are hooks registered.
      • execute

        boolean execute​(InstallContext context)
        Executes the registered hooks with the current InstallContext.Phase.
        Parameters:
        context - the context
        Returns:
        true if successful.