org.apache.maven.archetype.common
Class DefaultArchetypeRegistryManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.common.DefaultArchetypeRegistryManager
- All Implemented Interfaces:
- ArchetypeRegistryManager, org.codehaus.plexus.logging.LogEnabled
public class DefaultArchetypeRegistryManager
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements ArchetypeRegistryManager
- Plexus component
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 |
DefaultArchetypeRegistryManager
public DefaultArchetypeRegistryManager()
getFilteredExtensions
public List<String> getFilteredExtensions(String archetypeFilteredExtentions,
File archetypeRegistryFile)
throws IOException
- Specified by:
getFilteredExtensions
in interface ArchetypeRegistryManager
- Throws:
IOException
getLanguages
public List<String> getLanguages(String archetypeLanguages,
File archetypeRegistryFile)
throws IOException
- Specified by:
getLanguages
in interface ArchetypeRegistryManager
- Throws:
IOException
readArchetypeRegistry
public ArchetypeRegistry readArchetypeRegistry(File archetypeRegistryFile)
throws IOException,
XmlPullParserException
- Specified by:
readArchetypeRegistry
in interface ArchetypeRegistryManager
- Throws:
IOException
XmlPullParserException
readArchetypeRegistry
public ArchetypeRegistry readArchetypeRegistry(Reader reader)
throws IOException,
XmlPullParserException
- Specified by:
readArchetypeRegistry
in interface ArchetypeRegistryManager
- Throws:
IOException
XmlPullParserException
writeArchetypeRegistry
public void writeArchetypeRegistry(File archetypeRegistryFile,
ArchetypeRegistry archetypeRegistry)
throws IOException
- Specified by:
writeArchetypeRegistry
in interface ArchetypeRegistryManager
- Throws:
IOException
createRepository
public org.apache.maven.artifact.repository.ArtifactRepository createRepository(String url,
String repositoryId)
- Code stealed from MavenArchetypeMojo
(org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha4).
- Specified by:
createRepository
in interface ArchetypeRegistryManager
getDefaultArchetypeRegistry
public ArchetypeRegistry getDefaultArchetypeRegistry()
- Specified by:
getDefaultArchetypeRegistry
in interface ArchetypeRegistryManager
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.