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 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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.codehaus.plexus.components.interactivity.Prompter
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • formatMessage

      private String formatMessage(String message, List<String> possibleValues, String defaultReply)
    • writePrompt

      private void writePrompt(String message) throws org.codehaus.plexus.components.interactivity.PrompterException
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • readLine

      private String readLine() throws org.codehaus.plexus.components.interactivity.PrompterException
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • showMessage

      public void showMessage(String message) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      showMessage in interface org.codehaus.plexus.components.interactivity.Prompter
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException