com.cloudbees.sdk.cli
Interface HasOptions

All Known Implementing Classes:
BeesClientFactory, Verbose

public interface HasOptions

Marker interface for injectable components indicating that this component will define command line options.

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.

Author:
Kohsuke Kawaguchi
See Also:
CommandScope



Copyright © 2011-2014. All Rights Reserved.