org.apache.maven.dotnet.registry.impl
Class StandardRepositoryLoader
java.lang.Object
org.apache.maven.dotnet.registry.impl.StandardRepositoryLoader
- All Implemented Interfaces:
- RepositoryLoader
public class StandardRepositoryLoader
- extends java.lang.Object
- implements RepositoryLoader
The default repository loader. This class can be extended
- Author:
- Shane Isbell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardRepositoryLoader
public StandardRepositoryLoader()
loadRepository
public Repository loadRepository(java.lang.String fileUri,
java.lang.String repositoryClass,
java.util.Hashtable initParams)
throws java.io.IOException
- Takes information from the registry-config file and dynamically builds a
Repository
- Specified by:
loadRepository
in interface RepositoryLoader
- Parameters:
fileUri
- name of the repository's configuration file. It may be located on the file system
or within a jar.repositoryClass
- name of the repository classinitParams
- Hashtable
containing the repository's configuration parameters.
- Returns:
- instance of repository
- Throws:
java.io.IOException
getLoaderName
public java.lang.String getLoaderName()
- Description copied from interface:
RepositoryLoader
- Accessor for the name of the
RepositoryLoader
. Typically will be the class name.
- Specified by:
getLoaderName
in interface RepositoryLoader
- Returns:
- name of the repository loader
setRepositoryRegistry
public void setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
- Specified by:
setRepositoryRegistry
in interface RepositoryLoader
Copyright © 2007 NMaven. All Rights Reserved.