org.springframework.shell.plugin.support
Class DefaultPromptProvider
java.lang.Object
org.springframework.shell.plugin.support.DefaultPromptProvider
- All Implemented Interfaces:
- PluginProvider, PromptProvider
@Component
public class DefaultPromptProvider
- extends Object
- implements PromptProvider
Default prompt provider. The prompt text is org.springframework.shell.Constant.COMMAND_LINE_PROMPT
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPromptProvider
public DefaultPromptProvider()
getPrompt
public String getPrompt()
- Description copied from interface:
PromptProvider
- Returns the prompt text.
- Specified by:
getPrompt
in interface PromptProvider
- Returns:
- prompt
name
public String name()
- Description copied from interface:
PluginProvider
- Returns the name of the plugin.
- Specified by:
name
in interface PluginProvider
- Returns: