Class SVNClientAdapterFactory

java.lang.Object
org.tigris.subversion.svnclientadapter.SVNClientAdapterFactory

public abstract class SVNClientAdapterFactory extends Object
Abstract Factory for SVNClientAdapter. Real factories should extend this class and register themselves with the method #registerAdapterFactory
Author:
Cédric Chabanois cchabanois@ifrance.com, Panagiotis Korros pkorros@bigfoot.com
  • Constructor Details

    • SVNClientAdapterFactory

      public SVNClientAdapterFactory()
  • Method Details

    • createSVNClientImpl

      protected abstract ISVNClientAdapter createSVNClientImpl()
      Real Factories should implement these methods.
    • getClientType

      protected abstract String getClientType()
    • createSVNClient

      public static ISVNClientAdapter createSVNClient(String clientType)
      creates a new ISVNClientAdapter. You can create a javahl client or a command line client.
      Parameters:
      clientType -
      Returns:
      the client adapter that was requested or null if that client adapter is not available or doesn't exist.
    • isSVNClientAvailable

      public static boolean isSVNClientAvailable(String clientType)
      tells if the given clientType is available or not
      Parameters:
      clientType -
      Returns:
      true if the given clientType is available
    • getPreferredSVNClientType

      public static String getPreferredSVNClientType() throws SVNClientException
      Returns:
      the best svn client interface
      Throws:
      SVNClientException
    • registerAdapterFactory

      protected static void registerAdapterFactory(SVNClientAdapterFactory factory) throws SVNClientException
      Extenders should register themselves with this method. First registered factory will be considered as the preferred one
      Throws:
      SVNClientException - when factory with specified type is already registered.