Class DefaultArchetypeGenerationQueryer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationQueryer
- All Implemented Interfaces:
ArchetypeGenerationQueryer
,org.codehaus.plexus.logging.LogEnabled
@Named("default")
@Singleton
public class DefaultArchetypeGenerationQueryer
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ArchetypeGenerationQueryer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.codehaus.plexus.components.interactivity.Prompter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
confirmConfiguration
(ArchetypeConfiguration archetypeConfiguration) getPropertyValue
(String requiredProperty, String defaultValue, Pattern validationRegex) void
setPrompter
(org.codehaus.plexus.components.interactivity.Prompter prompter) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
prompter
@Inject private org.codehaus.plexus.components.interactivity.Prompter prompter
-
-
Constructor Details
-
DefaultArchetypeGenerationQueryer
public DefaultArchetypeGenerationQueryer()
-
-
Method Details
-
confirmConfiguration
public boolean confirmConfiguration(ArchetypeConfiguration archetypeConfiguration) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
confirmConfiguration
in interfaceArchetypeGenerationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getPropertyValue
public String getPropertyValue(String requiredProperty, String defaultValue, Pattern validationRegex) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getPropertyValue
in interfaceArchetypeGenerationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
setPrompter
public void setPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter)
-