org.apache.maven.archetype.ui.generation
Class DefaultArchetypeSelectionQueryer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.ui.generation.DefaultArchetypeSelectionQueryer
- All Implemented Interfaces:
- ArchetypeSelectionQueryer, org.codehaus.plexus.logging.LogEnabled
@Component(role=ArchetypeSelectionQueryer.class)
public class DefaultArchetypeSelectionQueryer
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements ArchetypeSelectionQueryer
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultArchetypeSelectionQueryer
public DefaultArchetypeSelectionQueryer()
confirmSelection
public boolean confirmSelection(ArchetypeDefinition archetypeDefinition)
throws org.codehaus.plexus.components.interactivity.PrompterException
- Specified by:
confirmSelection
in interface ArchetypeSelectionQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
selectArchetype
public Archetype selectArchetype(Map<String,List<Archetype>> catalogs)
throws org.codehaus.plexus.components.interactivity.PrompterException
- Specified by:
selectArchetype
in interface ArchetypeSelectionQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
selectArchetype
public Archetype selectArchetype(Map<String,List<Archetype>> catalogs,
ArchetypeDefinition defaultDefinition)
throws org.codehaus.plexus.components.interactivity.PrompterException
- Description copied from interface:
ArchetypeSelectionQueryer
- Select an archetype from the given map.
- Specified by:
selectArchetype
in interface ArchetypeSelectionQueryer
- 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)
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.