@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 ArchetypeSelectionQueryer
org.codehaus.plexus.components.interactivity.PrompterException
public Archetype selectArchetype(Map<String,List<Archetype>> catalogs) throws org.codehaus.plexus.components.interactivity.PrompterException
selectArchetype
in interface ArchetypeSelectionQueryer
org.codehaus.plexus.components.interactivity.PrompterException
public Archetype selectArchetype(Map<String,List<Archetype>> catalogs, ArchetypeDefinition defaultDefinition) throws org.codehaus.plexus.components.interactivity.PrompterException
ArchetypeSelectionQueryer
selectArchetype
in interface ArchetypeSelectionQueryer
catalogs
- 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–2017 The Apache Software Foundation. All rights reserved.