org.apache.maven.archetype.ui
Class DefaultArchetypeSelectionQueryer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.ui.DefaultArchetypeSelectionQueryer
- All Implemented Interfaces:
- ArchetypeSelectionQueryer, LogEnabled
public class DefaultArchetypeSelectionQueryer
- extends AbstractLogEnabled
- implements ArchetypeSelectionQueryer
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(List archetypes)
throws org.codehaus.plexus.components.interactivity.PrompterException
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
selectArchetype
public Archetype selectArchetype(Map 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 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-2010 The Apache Software Foundation. All Rights Reserved.