org.apache.maven.archetype.source
Class CatalogArchetypeDataSource

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.archetype.source.CatalogArchetypeDataSource
All Implemented Interfaces:
ArchetypeDataSource, org.codehaus.plexus.logging.LogEnabled
Direct Known Subclasses:
InternalCatalogArchetypeDataSource, RemoteCatalogArchetypeDataSource

public class CatalogArchetypeDataSource
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ArchetypeDataSource

Author:
Jason van Zyl

Field Summary
static java.lang.String ARCHETYPE_CATALOG_FILENAME
           
static java.lang.String ARCHETYPE_CATALOG_PROPERTY
           
static java.io.File DEFAULT_ARCHETYPE_CATALOG
           
static java.io.File MAVEN_CONFIGURATION
           
static java.io.File USER_HOME
           
 
Fields inherited from interface org.apache.maven.archetype.source.ArchetypeDataSource
ROLE
 
Constructor Summary
CatalogArchetypeDataSource()
           
 
Method Summary
protected  java.util.List createArchetypeMap(org.apache.maven.archetype.catalog.ArchetypeCatalog archetypeCatalog)
           
 org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog(java.util.Properties properties)
           
 java.util.List getArchetypes(java.util.Properties properties)
           
protected  org.apache.maven.archetype.catalog.ArchetypeCatalog readCatalog(java.io.Reader reader)
           
 void updateCatalog(java.util.Properties properties, org.apache.maven.archetype.catalog.Archetype archetype)
           
protected  void writeLocalCatalog(org.apache.maven.archetype.catalog.ArchetypeCatalog catalog, java.io.File catalogFile)
           
 
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
 

Field Detail

ARCHETYPE_CATALOG_PROPERTY

public static final java.lang.String ARCHETYPE_CATALOG_PROPERTY
See Also:
Constant Field Values

ARCHETYPE_CATALOG_FILENAME

public static final java.lang.String ARCHETYPE_CATALOG_FILENAME
See Also:
Constant Field Values

USER_HOME

public static final java.io.File USER_HOME

MAVEN_CONFIGURATION

public static final java.io.File MAVEN_CONFIGURATION

DEFAULT_ARCHETYPE_CATALOG

public static final java.io.File DEFAULT_ARCHETYPE_CATALOG
Constructor Detail

CatalogArchetypeDataSource

public CatalogArchetypeDataSource()
Method Detail

getArchetypes

public java.util.List getArchetypes(java.util.Properties properties)
                             throws ArchetypeDataSourceException
Throws:
ArchetypeDataSourceException

updateCatalog

public void updateCatalog(java.util.Properties properties,
                          org.apache.maven.archetype.catalog.Archetype archetype)
                   throws ArchetypeDataSourceException
Specified by:
updateCatalog in interface ArchetypeDataSource
Throws:
ArchetypeDataSourceException

writeLocalCatalog

protected void writeLocalCatalog(org.apache.maven.archetype.catalog.ArchetypeCatalog catalog,
                                 java.io.File catalogFile)
                          throws ArchetypeDataSourceException
Throws:
ArchetypeDataSourceException

createArchetypeMap

protected java.util.List createArchetypeMap(org.apache.maven.archetype.catalog.ArchetypeCatalog archetypeCatalog)
                                     throws ArchetypeDataSourceException
Throws:
ArchetypeDataSourceException

readCatalog

protected org.apache.maven.archetype.catalog.ArchetypeCatalog readCatalog(java.io.Reader reader)
                                                                   throws ArchetypeDataSourceException
Throws:
ArchetypeDataSourceException

getArchetypeCatalog

public org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog(java.util.Properties properties)
                                                                        throws ArchetypeDataSourceException
Specified by:
getArchetypeCatalog in interface ArchetypeDataSource
Throws:
ArchetypeDataSourceException


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.