Class ResetProcessor

  • All Implemented Interfaces:
    ExtensionsFileProcessor

    public class ResetProcessor
    extends Object
    implements ExtensionsFileProcessor
    File processor implementation that reset the error flag, class loader, etc. for all extension files. This is usually needed to be able to re-install extensions that has been updated or that had an error that has now been fixed.
    Since:
    3.10
    Author:
    Nicklas
    Last modified
    $Date$
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • resetErrorFlag

        private boolean resetErrorFlag
      • resetClassLoader

        private boolean resetClassLoader
      • numFiles

        private int numFiles
    • Constructor Detail

      • ResetProcessor

        public ResetProcessor​(ProcessResults results)
        Create a new processor instance using default settings.
    • Method Detail

      • setResetClassLoader

        public void setResetClassLoader​(boolean resetClassLoader)
        This flag controls if the class loader should be reset or not. It is on by default.
      • getResetClassLoader

        public boolean getResetClassLoader()
      • setResetErrorFlag

        public void setResetErrorFlag​(boolean resetErrorFlag)
        This flag controls if the error flag should be reset or not. It is on by default.
      • getResetrrorFlag

        public boolean getResetrrorFlag()
      • begin

        public void begin​(ExtensionsManager manager,
                          int numFiles)
        Description copied from interface: ExtensionsFileProcessor
        Called by the extensions manager before the processing starts.
        Specified by:
        begin in interface ExtensionsFileProcessor
        Parameters:
        manager - The manager that is executing the action
        numFiles - The number of extension files that is going to be processed this time
      • getNumFiles

        public int getNumFiles()
        Get the number of files that was processed.