net.sf.vcaperture.services
Class DefaultRepositoryService

java.lang.Object
  extended by net.sf.vcaperture.services.DefaultRepositoryService
All Implemented Interfaces:
IRepositoryService
Direct Known Subclasses:
ProcessedRepositoryService

public class DefaultRepositoryService
extends java.lang.Object
implements IRepositoryService

The default repository service with a working general implementation.

Author:
Jeremy Thomerson (jthomerson@users.sourceforge.net)

Field Summary
private  RepositoryConfiguration mConfiguration
           
private  java.io.File mWorkingDirectory
           
static java.lang.String REPO_CONFIG_FILE
           
 
Constructor Summary
DefaultRepositoryService()
           
 
Method Summary
 java.util.Collection<AbstractRepository> getRepositories()
           
 AbstractRepository getRepository(java.lang.String repositoryName)
           
 java.io.File getWorkingDirectory()
           
protected  void initialize()
          This method should be called after the working directory is set.
 void setRepositories(java.util.Collection<AbstractRepository> repos)
           
 void setWorkingDirectory(java.io.File directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPO_CONFIG_FILE

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

mConfiguration

private RepositoryConfiguration mConfiguration

mWorkingDirectory

private java.io.File mWorkingDirectory
Constructor Detail

DefaultRepositoryService

public DefaultRepositoryService()
Method Detail

initialize

protected void initialize()
This method should be called after the working directory is set. This will load the repositories from the configuration file.


getRepository

public AbstractRepository getRepository(java.lang.String repositoryName)
Specified by:
getRepository in interface IRepositoryService

getRepositories

public java.util.Collection<AbstractRepository> getRepositories()
Specified by:
getRepositories in interface IRepositoryService

setRepositories

public void setRepositories(java.util.Collection<AbstractRepository> repos)

getWorkingDirectory

public java.io.File getWorkingDirectory()
Specified by:
getWorkingDirectory in interface IRepositoryService

setWorkingDirectory

public void setWorkingDirectory(java.io.File directory)


Copyright © 2008. All Rights Reserved.