Package org.apache.maven.archetype.ui
Class ArchetypePrompter
java.lang.Object
org.apache.maven.archetype.ui.ArchetypePrompter
- All Implemented Interfaces:
org.codehaus.plexus.components.interactivity.Prompter
@Named("archetype")
@Singleton
public class ArchetypePrompter
extends Object
implements org.codehaus.plexus.components.interactivity.Prompter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.codehaus.plexus.components.interactivity.InputHandler
private org.codehaus.plexus.components.interactivity.OutputHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
formatMessage
(String message, List<String> possibleValues, String defaultReply) promptForPassword
(String message) private String
readLine()
void
showMessage
(String message) private void
writePrompt
(String message)
-
Field Details
-
outputHandler
@Inject private org.codehaus.plexus.components.interactivity.OutputHandler outputHandler -
inputHandler
@Inject private org.codehaus.plexus.components.interactivity.InputHandler inputHandler
-
-
Constructor Details
-
ArchetypePrompter
public ArchetypePrompter()
-
-
Method Details
-
prompt
public String prompt(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
prompt
in interfaceorg.codehaus.plexus.components.interactivity.Prompter
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
prompt
public String prompt(String message, String defaultReply) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
prompt
in interfaceorg.codehaus.plexus.components.interactivity.Prompter
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
prompt
public String prompt(String message, List possibleValues, String defaultReply) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
prompt
in interfaceorg.codehaus.plexus.components.interactivity.Prompter
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
prompt
public String prompt(String message, List possibleValues) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
prompt
in interfaceorg.codehaus.plexus.components.interactivity.Prompter
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
promptForPassword
public String promptForPassword(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
promptForPassword
in interfaceorg.codehaus.plexus.components.interactivity.Prompter
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
formatMessage
-
writePrompt
private void writePrompt(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
readLine
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
showMessage
public void showMessage(String message) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
showMessage
in interfaceorg.codehaus.plexus.components.interactivity.Prompter
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-