CommandOptionsGetter
public
class
CommandOptionsGetter
extends Object
implements
IConfigurationReceiver,
IRemoteFeature
java.lang.Object | |
↳ | com.android.tradefed.config.filter.CommandOptionsGetter |
Service implementation that returns the command options value of a given invocation. This can be extended in the future to support more options.
Summary
Fields | |
---|---|
public
static
final
String |
COMMAND_OPTIONS_GETTER
|
public
static
final
String |
OPTION_NAME
|
Public constructors | |
---|---|
CommandOptionsGetter()
|
Public methods | |
---|---|
FeatureResponse
|
execute(FeatureRequest request)
Returns a |
String
|
getName()
Name of the feature. |
void
|
setConfiguration(IConfiguration configuration)
Injects the |
Fields
COMMAND_OPTIONS_GETTER
public static final String COMMAND_OPTIONS_GETTER
OPTION_NAME
public static final String OPTION_NAME
Public constructors
CommandOptionsGetter
public CommandOptionsGetter ()
Public methods
execute
public FeatureResponse execute (FeatureRequest request)
Returns a FeatureResponse
based on the request.
Parameters | |
---|---|
request |
FeatureRequest |
Returns | |
---|---|
FeatureResponse |
getName
public String getName ()
Name of the feature. Must match FeatureRequest.getName()
.
Returns | |
---|---|
String |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injects the IConfiguration
in use.
Parameters | |
---|---|
configuration |
IConfiguration |