Class LegacyPlexusInteractivity
java.lang.Object
org.apache.maven.internal.compat.interactivity.LegacyPlexusInteractivity
- All Implemented Interfaces:
org.codehaus.plexus.components.interactivity.InputHandler
,org.codehaus.plexus.components.interactivity.OutputHandler
,org.codehaus.plexus.components.interactivity.Prompter
@Experimental
@Named
@Singleton
@Priority(10)
public class LegacyPlexusInteractivity
extends Object
implements org.codehaus.plexus.components.interactivity.Prompter, org.codehaus.plexus.components.interactivity.InputHandler, org.codehaus.plexus.components.interactivity.OutputHandler
This class is injected into any legacy component that would want to use legacy "Plexus Interactivity API".
It simply delegates to Maven4 API
DefaultPrompter
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpromptForPassword
(String message) readLine()
void
showMessage
(String message) void
void
-
Constructor Details
-
LegacyPlexusInteractivity
-
-
Method Details
-
readLine
- Specified by:
readLine
in interfaceorg.codehaus.plexus.components.interactivity.InputHandler
- Throws:
IOException
-
readPassword
- Specified by:
readPassword
in interfaceorg.codehaus.plexus.components.interactivity.InputHandler
- Throws:
IOException
-
readMultipleLines
- Specified by:
readMultipleLines
in interfaceorg.codehaus.plexus.components.interactivity.InputHandler
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.codehaus.plexus.components.interactivity.OutputHandler
- Throws:
IOException
-
writeLine
- Specified by:
writeLine
in interfaceorg.codehaus.plexus.components.interactivity.OutputHandler
- Throws:
IOException
-
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) 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
-
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
-
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
-