Package hudson.cli.handlers
Class GenericItemOptionHandler<T extends Item>
- java.lang.Object
-
- org.kohsuke.args4j.spi.OptionHandler<T>
-
- hudson.cli.handlers.GenericItemOptionHandler<T>
-
- Type Parameters:
T
- the kind of item being handled
- Direct Known Subclasses:
AbstractItemOptionHandler
,AbstractProjectOptionHandler
,JobOptionHandler
,ParameterizedJobOptionHandler
,TopLevelItemOptionHandler
public abstract class GenericItemOptionHandler<T extends Item> extends org.kohsuke.args4j.spi.OptionHandler<T>
Refers to anItem
by its name. May be subclassed to handle specific kinds of items. (Use@MetaInfServices(OptionHandler.class)
to register the subclass.)- Since:
- 1.538
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericItemOptionHandler(org.kohsuke.args4j.CmdLineParser parser, org.kohsuke.args4j.OptionDef option, org.kohsuke.args4j.spi.Setter<T> setter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getDefaultMetaVariable()
int
parseArguments(org.kohsuke.args4j.spi.Parameters params)
protected abstract Class<T>
type()
-
-
-
Constructor Detail
-
GenericItemOptionHandler
protected GenericItemOptionHandler(org.kohsuke.args4j.CmdLineParser parser, org.kohsuke.args4j.OptionDef option, org.kohsuke.args4j.spi.Setter<T> setter)
-
-