@Component(role=ArchetypeSelectionQueryer.class, hint="default") public class DefaultArchetypeSelectionQueryer extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArchetypeSelectionQueryer
ROLE| Constructor and Description |
|---|
DefaultArchetypeSelectionQueryer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
confirmSelection(ArchetypeDefinition archetypeDefinition) |
Archetype |
selectArchetype(Map<String,List<Archetype>> catalogs) |
Archetype |
selectArchetype(Map<String,List<Archetype>> catalogs,
ArchetypeDefinition defaultDefinition)
Select an archetype from the given map.
|
void |
setPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter) |
public boolean confirmSelection(ArchetypeDefinition archetypeDefinition) throws org.codehaus.plexus.components.interactivity.PrompterException
confirmSelection in interface ArchetypeSelectionQueryerorg.codehaus.plexus.components.interactivity.PrompterExceptionpublic Archetype selectArchetype(Map<String,List<Archetype>> catalogs) throws org.codehaus.plexus.components.interactivity.PrompterException
selectArchetype in interface ArchetypeSelectionQueryerorg.codehaus.plexus.components.interactivity.PrompterExceptionpublic Archetype selectArchetype(Map<String,List<Archetype>> catalogs, ArchetypeDefinition defaultDefinition) throws org.codehaus.plexus.components.interactivity.PrompterException
ArchetypeSelectionQueryerselectArchetype in interface ArchetypeSelectionQueryercatalogs - the archetypes to choose fromdefaultDefinition - the default archetype, if present in the maporg.codehaus.plexus.components.interactivity.PrompterException - if there is a problem in making a
selectionpublic void setPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.