public interface UserInteractionCallbackPlugin extends ExecContextPlugin
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UserInteractionCallbackPlugin.BracketHandle |
| Modifier and Type | Method and Description |
|---|---|
String |
getInfo(String prompt) |
String |
getInfoPassword(String prompt) |
String |
getInfoWithDefault(String prompt,
String defaultValue) |
boolean |
isBatchMode() |
void |
provideInfo(String info) |
Writer |
provideInfoWithWriter(String info)
Provides information to the user in a way similar to
provideInfo(java.lang.String), but
returns a Writer so that the caller can append additional information. |
UserInteractionCallbackPlugin.BracketHandle |
startBracket(String info) |
UserInteractionCallbackPlugin.BracketHandle startBracket(String info)
void provideInfo(String info)
Writer provideInfoWithWriter(String info)
provideInfo(java.lang.String), but
returns a Writer so that the caller can append additional information.
The caller is responsible for closing the Writer when done so that the plugin is able to associate all of the additional information with the initial call to this method. Calling close in this case should not close some underlying stream in such a way that would render the system unstable. Specifically if the Writer delegates to System.out, it must not delegate the close call. This use of close is specific to the contract with this class and does not necessarily respect the general contract of Writer.close.
No call to other methods of this plugin are allowed as long as the Writer is not closed.
info - See similar parameter for provideInfo.boolean isBatchMode()
getInfo(java.lang.String) and
getInfoWithDefault(java.lang.String, java.lang.String) are not allowed. Generally, caller should not
worry about this and let these method fail if in batch mode. But some
classes, such as DefaultCredetialStorePluginImpl, may need to know whether
batch mode is enabled.Copyright © 2015–2016 AZYVA INC.. All rights reserved.