org.springframework.shell.plugin.support
Class DefaultPromptProvider

java.lang.Object
  extended by 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


Constructor Summary
DefaultPromptProvider()
           
 
Method Summary
 String getPrompt()
          Returns the prompt text.
 String name()
          Returns the name of the plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPromptProvider

public DefaultPromptProvider()
Method Detail

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: