public interface HasOptions
Often a command implementation uses various components to delegate some lower level tasks, and these components want to allow users to tweak behaviours through a set of command line options.
This marker interface tells AbstractCommand.createParser() that those components will participate
in the command line parsing process. Subtypes can define fields/setters with args4j annotations, and/or refer
to other components that has HasOptions annotation.
Components that have this interface normally needs to be scoped to command to ensure there's only one instance of it per a single command invocation.
CommandScopeCopyright © 2011-2013. All Rights Reserved.