Class VCSFactory

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

public class VCSFactory extends Object
Permet de recupere le bon VCS en fonction de la configuration.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
poussin
  • Field Details

    • TYPE_ALIASES

      protected static final Properties TYPE_ALIASES
  • Method Details

    • 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