ariba.util.core
Interface ContextCommandLine

All Superinterfaces:
CommandLine

public interface ContextCommandLine
extends CommandLine

This interface provides a general mechanism for its clients to set up the command line arguments that it is expecting, to process the arguments, and finally to run with the input arguments. In addition to the command line arguments, the command may be passed additional context, such as other streams or processes. Normally, a class implementing this interface implements its main method which calls the create method of the ArgumentParser class, passing in its class name and its command line arguments. Then the setupArguments method is called to allow the client to register the command line arguments. Then the processArguments method is called to allow the client to process its arguments. Finally, the startup method is invoked to allow the client to be executed.

See Also:
ArgumentParser

Method Summary
 void setContext(java.lang.Object context)
          Hook for invoker to pass information other than what is in the arguments
 
Methods inherited from interface ariba.util.core.CommandLine
processArguments, setupArguments, startup
 

Method Detail

setContext

void setContext(java.lang.Object context)
Hook for invoker to pass information other than what is in the arguments



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.