Class SVNClientAdapterFactory
java.lang.Object
org.tigris.subversion.svnclientadapter.SVNClientAdapterFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ISVNClientAdapter
createSVNClient
(String clientType) creates a new ISVNClientAdapter.protected abstract ISVNClientAdapter
Real Factories should implement these methods.protected abstract String
static String
static boolean
isSVNClientAvailable
(String clientType) tells if the given clientType is available or notprotected static void
Extenders should register themselves with this method.
-
Constructor Details
-
SVNClientAdapterFactory
public SVNClientAdapterFactory()
-
-
Method Details
-
createSVNClientImpl
Real Factories should implement these methods. -
getClientType
-
createSVNClient
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
tells if the given clientType is available or not- Parameters:
clientType
-- Returns:
- true if the given clientType is available
-
getPreferredSVNClientType
- 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.
-