org.apache.maven.archetype.ui
Class DefaultArchetypeSelectionQueryer

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.archetype.ui.DefaultArchetypeSelectionQueryer
All Implemented Interfaces:
ArchetypeSelectionQueryer, LogEnabled

public class DefaultArchetypeSelectionQueryer
extends AbstractLogEnabled
implements ArchetypeSelectionQueryer


Field Summary
 
Fields inherited from interface org.apache.maven.archetype.ui.ArchetypeSelectionQueryer
ROLE
 
Constructor Summary
DefaultArchetypeSelectionQueryer()
           
 
Method Summary
 boolean confirmSelection(ArchetypeDefinition archetypeDefinition)
           
 Archetype selectArchetype(List archetypes)
           
 Archetype selectArchetype(Map catalogs)
           
 Archetype selectArchetype(Map catalogs, ArchetypeDefinition defaultDefinition)
          Select an archetype from the given map.
 void setPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter)
           
 
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
 

Constructor Detail

DefaultArchetypeSelectionQueryer

public DefaultArchetypeSelectionQueryer()
Method Detail

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 from
defaultDefinition - 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.