Interface IActionProvider


  • public interface IActionProvider
    The IActionProvider interface can be implemented by plugins to add custom actions to remote-method-guesser. All actions provided by the getActions method will be added to the command line. If the user decides to invoke such an action, the dispatch action is called with the selected action as argument.
    Author:
    Tobias Neitzel (@qtc_de)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispatch​(eu.tneitzel.argparse4j.global.IAction action)
      Is called by remote-method-guesser if the user specified an action that was defined by the plugin.
      eu.tneitzel.argparse4j.global.IAction[] getActions()
      Return all actions that get added by the plugin.
    • Method Detail

      • getActions

        eu.tneitzel.argparse4j.global.IAction[] getActions()
        Return all actions that get added by the plugin.
        Returns:
        actions that are added by the plugin
      • dispatch

        void dispatch​(eu.tneitzel.argparse4j.global.IAction action)
        Is called by remote-method-guesser if the user specified an action that was defined by the plugin.
        Parameters:
        action - the action specified by the user