org.opends.server.util.cli
Interface MenuCallback<T>

Type Parameters:
T - The type of success result value(s) returned by the call-back. Use Void if the call-backs do not return any values.

public interface MenuCallback<T>

A menu call-back which should be associated with each menu option. When an option is selected the call-back is invoked.


Method Summary
 MenuResult<T> invoke(ConsoleApplication app)
          Invoke the menu call-back.
 

Method Detail

invoke

MenuResult<T> invoke(ConsoleApplication app)
                     throws CLIException
Invoke the menu call-back.

Parameters:
app - The application console.
Returns:
Returns the result of invoking the menu call-back.
Throws:
CLIException - If the menu call-back fails for some reason.