org.apache.maven.dotnet.registry
Interface RepositoryLoader

All Known Implementing Classes:
StandardRepositoryLoader

public interface RepositoryLoader

Provides services for loading repositories into the registry.

Author:
Shane Isbell

Method Summary
 java.lang.String getLoaderName()
          Accessor for the name of the RepositoryLoader.
 Repository loadRepository(java.lang.String fileUri, java.lang.String repositoryClass, java.util.Hashtable initParams)
          Takes information from the registry-config file and dynamically builds a Repository
 void setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
           
 

Method Detail

loadRepository

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

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 class
initParams - Hashtable containing the repository's configuration parameters.
Returns:
instance of repository
Throws:
java.io.IOException

getLoaderName

java.lang.String getLoaderName()
Accessor for the name of the RepositoryLoader. Typically will be the class name.

Returns:
name of the repository loader

setRepositoryRegistry

void setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
Parameters:
repositoryRegistry -


Copyright © 2007 NMaven. All Rights Reserved.