public class CrawlerBeansPropHandler extends Object implements CmdLineOptionHandler
CmdLineOptionHandler
which adds bean properties to
ActionBeanProperties
so that they can then be injected into
ProductCrawler
s and CrawlerAction
s.Constructor and Description |
---|
CrawlerBeansPropHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getArgDescription(CmdLineAction action,
CmdLineOption option)
If this handler causes the argument descriptor to be different for
certain
CmdLineAction s, then should return the arg
description here. |
String |
getHelp(CmdLineOption option)
Gets the
CmdLineOptionHandler s help message when associated with
given CmdLineOption . |
void |
handleOption(CmdLineAction selectedAction,
CmdLineOptionInstance optionInstance) |
void |
initialize(CmdLineOption option)
Called after handler construction to allow handler to setup
state before it is required to handle the option later.
|
void |
setProperties(List<String> properties) |
public void initialize(CmdLineOption option)
CmdLineOptionHandler
initialize
in interface CmdLineOptionHandler
public void handleOption(CmdLineAction selectedAction, CmdLineOptionInstance optionInstance)
handleOption
in interface CmdLineOptionHandler
public String getHelp(CmdLineOption option)
CmdLineOptionHandler
CmdLineOptionHandler
s help message when associated with
given CmdLineOption
.getHelp
in interface CmdLineOptionHandler
option
- The CmdLineOption
to which this
CmdLineOptionHandler
was associated withCmdLineOptionHandler
public String getArgDescription(CmdLineAction action, CmdLineOption option)
CmdLineOptionHandler
CmdLineAction
s, then should return the arg
description here.getArgDescription
in interface CmdLineOptionHandler
Copyright © 1999–2017 Apache OODT. All rights reserved.