Class DefaultArchetypeSelectionQueryer
java.lang.Object
org.apache.maven.archetype.ui.generation.DefaultArchetypeSelectionQueryer
- All Implemented Interfaces:
ArchetypeSelectionQueryer
@Named("default")
@Singleton
public class DefaultArchetypeSelectionQueryer
extends Object
implements ArchetypeSelectionQueryer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselectArchetype(Map<String, List<Archetype>> catalogs) selectArchetype(Map<String, List<Archetype>> catalogs, ArchetypeDefinition defaultDefinition) Select an archetype from the given map.voidsetPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter)
-
Constructor Details
-
DefaultArchetypeSelectionQueryer
public DefaultArchetypeSelectionQueryer()
-
-
Method Details
-
selectArchetype
public Archetype selectArchetype(Map<String, List<Archetype>> catalogs) throws org.codehaus.plexus.components.interactivity.PrompterException- Specified by:
selectArchetypein interfaceArchetypeSelectionQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
selectArchetype
public Archetype selectArchetype(Map<String, List<Archetype>> catalogs, ArchetypeDefinition defaultDefinition) throws org.codehaus.plexus.components.interactivity.PrompterExceptionDescription copied from interface:ArchetypeSelectionQueryerSelect an archetype from the given map.- Specified by:
selectArchetypein interfaceArchetypeSelectionQueryer- Parameters:
catalogs- the archetypes to choose fromdefaultDefinition- the default archetype, if present in the map- Returns:
- the selected archetype
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException- if there is a problem in making a selection
-
setPrompter
public void setPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter)
-