fr.ifremer.isisfish.vcs
Class VCSFactory

java.lang.Object
  extended by fr.ifremer.isisfish.vcs.VCSFactory

public class VCSFactory
extends Object

Permet de recupere le bon VCS en fonction de la configuration.

Version:
$Revision: 3393 $ Last update : $Date: 2011-06-14 19:43:37 +0200 (Tue, 14 Jun 2011) $ By : $Author: chatellier $
Author:
poussin

Field Summary
protected static Properties TYPE_ALIASES
           
 
Method Summary
static VCS createPublicVCS(IsisConfig config)
          Create VCS to manage community VCS repository.
static VCS createVCS(IsisConfig config)
          VCS factory, looking for vcs.type key in config to find vcs class to used.
protected static VCS makeVCSInstance(String classname, File dataDir, String protocol, String host, String path, File sshKeyFile, String login, String password)
          Make CSV instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ALIASES

protected static final Properties TYPE_ALIASES
Method Detail

createVCS

public static VCS createVCS(IsisConfig config)
VCS factory, looking for vcs.type key in config to find vcs class to used. If no vcs.type found or is not valid class, use VCSNone.

Parameters:
config - config
Returns:
usable VCS

createPublicVCS

public static VCS createPublicVCS(IsisConfig config)
Create VCS to manage community VCS repository.

Parameters:
config - config
Returns:
usable VCS

makeVCSInstance

protected static VCS makeVCSInstance(String classname,
                                     File dataDir,
                                     String protocol,
                                     String host,
                                     String path,
                                     File sshKeyFile,
                                     String login,
                                     String password)
Make CSV instance.

Parameters:
classname - class name
dataDir - root data dir
protocol - protocol
host - host
path - path
sshKeyFile - ssh key file
login - login
password - password
Returns:
CSV instance


Copyright © 1999-2012 CodeLutin. All Rights Reserved.