org.apache.maven.dotnet.registry.impl
Class StandardRepositoryLoader

java.lang.Object
  extended by 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

Constructor Summary
StandardRepositoryLoader()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardRepositoryLoader

public StandardRepositoryLoader()
Method Detail

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 class
initParams - 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.