Interface CommandLineRedirection.Registration

  • Enclosing interface:
    CommandLineRedirection

    public static interface CommandLineRedirection.Registration
    Represents registration of the command line redirection
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handle​(ParsedCommandLine parsedLine)
      Allows to execute the parsed command line as it normally would be executed w/o the redirection in effect.
      boolean isActive()
      Checks whether the registration is still active.
      void unregister()
      Redirection can be stopped by invoking this method.
    • Method Detail

      • isActive

        boolean isActive()
        Checks whether the registration is still active. The method will return false after the unregister method has been called on the instance.
        Returns:
        true if the registration is still active, false if the unregister method has been called on the instance
      • handle

        void handle​(ParsedCommandLine parsedLine)
             throws CommandLineException
        Allows to execute the parsed command line as it normally would be executed w/o the redirection in effect.
        Parameters:
        parsedLine - the parsed command line
        Throws:
        CommandLineException - in case the line failed to execute