Java Doc for SVNClientManager.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » wc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core.wc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tmatesoft.svn.core.wc.SVNClientManager

SVNClientManager
public class SVNClientManager implements ISVNRepositoryPool(Code)
The SVNClientManager class is used to manage SVN*Client objects as well as for providing them to a user what makes the user's work easier and his code - pretty clear and flexible.

When you don't have special needs to create, keep and manage separate SVN*Client objects by yourself, you should use SVNClientManager that takes care of all that work for you. These are some of advantages of using SVNClientManager:

  1. If you instantiate an SVN*Client object by yourself you need to provide a run-time configuration driver - ISVNOptions - as well as an authentication and network layers driver - org.tmatesoft.svn.core.auth.ISVNAuthenticationManager . When using an SVNClientManager you have multiple choices to provide and use those drivers:
     //1.default options and authentication drivers to use
     SVNClientManager clientManager = SVNClientManager.newInstance();
     ...
     //2.provided options and default authentication drivers to use
     ISVNOptions myOptions;
     ...
     SVNClientManager clientManager = SVNClientManager.newInstance(myOptions);
     ...
     //3.provided options and authentication drivers to use
     ISVNOptions myOptions;
     ISVNAuthenticationManager myAuthManager;
     ...
     SVNClientManager clientManager = SVNClientManager.newInstance(myOptions, myAuthManager);
     ...
     //4.provided options driver and user's credentials to make 
     //a default authentication driver use them 
     ISVNOptions myOptions;
     ...
     SVNClientManager 
     clientManager = SVNClientManager.newInstance(myOptions, "name", "passw");
     

    Having instantiated an SVNClientManager in one of these ways, all the SVN*Client objects it will provide you will share those drivers, so you don't need to code much to provide the same drivers to each SVN*Client instance by yourself.
  2. With SVNClientManager you don't need to create and keep your SVN*Client objects by youself - SVNClientManager will do all the work for you, so this will certainly bring down your efforts on coding and your code will be clearer and more flexible. All you need is to create an SVNClientManager instance.
  3. Actually every SVN*Client object is instantiated only at the moment of the first call to an appropriate SVNClientManager's get method:
     SVNClientManager clientManager;
     ...
     //an update client will be created only at that moment when you 
     //first call this method for getting your update client, but if you
     //have already called it once before, then the method will return
     //that update client object instantiated in previous... so, it's
     //quite cheap, you see.. 
     SVNUpdateClient updateClient = clientManager.getUpdateClient();

  4. You can provide a single event handler that will be used by all SVN*Client objects provided by SVNClientManager:
     import org.tmatesoft.svn.core.wc.ISVNEventHandler;
     ...
     ISVNEventHandler commonEventHandler;
     SVNClientManager clientManager = SVNClientManager.newInstance();
     ...
     //will be used by all SVN*Client objects
     //obtained from your client manager
     clientManager.setEventHandler(commonEventHandler);
     

version:
   1.1.1
author:
   TMate Software Ltd.
See Also:   ISVNEventHandler
See Also:    Examples




Method Summary
public  SVNRepositorycreateRepository(SVNURL url, boolean mayReuse)
     Creates a low-level SVN protocol driver to directly work with a repository.
public  voiddispose()
    
public  SVNAdminClientgetAdminClient()
     Returns an instance of the org.tmatesoft.svn.core.wc.admin.SVNAdminClient class.
public  SVNCommitClientgetCommitClient()
     Returns an instance of the SVNCommitClient class.
public  SVNCopyClientgetCopyClient()
     Returns an instance of the SVNCopyClient class.
public  ISVNDebugLoggetDebugLog()
     Returns the debug logger currently in use.
public  SVNDiffClientgetDiffClient()
     Returns an instance of the SVNDiffClient class.
public  SVNLogClientgetLogClient()
     Returns an instance of the SVNLogClient class.
public  SVNLookClientgetLookClient()
     Returns an instance of the org.tmatesoft.svn.core.wc.admin.SVNLookClient class.
public  SVNMoveClientgetMoveClient()
     Returns an instance of the SVNMoveClient class.
public  ISVNOptionsgetOptions()
     Returns the run-time configuration options driver which kept by this object.
public  SVNStatusClientgetStatusClient()
     Returns an instance of the SVNStatusClient class.
public  SVNUpdateClientgetUpdateClient()
     Returns an instance of the SVNUpdateClient class.
public  SVNWCClientgetWCClient()
     Returns an instance of the SVNWCClient class.
public static  SVNClientManagernewInstance()
     Creates a new instance of this class using default ISVNOptions and org.tmatesoft.svn.core.auth.ISVNAuthenticationManager drivers.
public static  SVNClientManagernewInstance(ISVNOptions options)
     Creates a new instance of this class using the provided ISVNOptions and default org.tmatesoft.svn.core.auth.ISVNAuthenticationManager drivers.
public static  SVNClientManagernewInstance(ISVNOptions options, ISVNAuthenticationManager authManager)
     Creates a new instance of this class using the provided ISVNOptions and org.tmatesoft.svn.core.auth.ISVNAuthenticationManager drivers.
public static  SVNClientManagernewInstance(ISVNOptions options, ISVNRepositoryPool repositoryPool)
     Creates a new instance of this class using the provided config driver and creator of of SVNRepository objects.
public static  SVNClientManagernewInstance(ISVNOptions options, String userName, String password)
     Creates a new instance of this class using the provided ISVNOptions driver and user's credentials to make a default implementation of org.tmatesoft.svn.core.auth.ISVNAuthenticationManager use them.
public  voidsetAuthenticationManager(ISVNAuthenticationManager authManager)
    
public  voidsetCanceller(ISVNCanceller canceller)
    
public  voidsetDebugLog(ISVNDebugLog log)
     Sets a logger to write debug log information to.
public  voidsetEventHandler(ISVNEventHandler handler)
     Sets an event handler to all SVN*Client objects created and kept by this SVNClientManager.

The provided event handler will be set only to only those objects that have been already created (SVN*Client objects are instantiated by an SVNClientManager at the moment of the first call to a get*Client() method).

public  voidsetOptions(ISVNOptions options)
    
public  voidshutdownConnections(boolean shutdownAll)
    



Method Detail
createRepository
public SVNRepository createRepository(SVNURL url, boolean mayReuse) throws SVNException(Code)
Creates a low-level SVN protocol driver to directly work with a repository.

The driver created will be set a default org.tmatesoft.svn.core.auth.ISVNAuthenticationManager manager.

Used by SVN*Client objects (managed by this SVNClientManager) to access a repository when needed.
Parameters:
  url - a repository location to establish a connection with (will be the root directoryfor the working session)
Parameters:
  mayReuse - if true then triesfirst tries to find a reusable driver or creates a new reusable one a low-level API driver for direct interactingwith a repository
throws:
  SVNException -




dispose
public void dispose()(Code)



getAdminClient
public SVNAdminClient getAdminClient()(Code)
Returns an instance of the org.tmatesoft.svn.core.wc.admin.SVNAdminClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNAdminClient instance




getCommitClient
public SVNCommitClient getCommitClient()(Code)
Returns an instance of the SVNCommitClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNCommitClient instance




getCopyClient
public SVNCopyClient getCopyClient()(Code)
Returns an instance of the SVNCopyClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNCopyClient instance




getDebugLog
public ISVNDebugLog getDebugLog()(Code)
Returns the debug logger currently in use.

If no debug logger has been specified by the time this call occurs, a default one (returned by org.tmatesoft.svn.util.SVNDebugLog.getDefaultLog()) will be created and used. a debug logger




getDiffClient
public SVNDiffClient getDiffClient()(Code)
Returns an instance of the SVNDiffClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNDiffClient instance




getLogClient
public SVNLogClient getLogClient()(Code)
Returns an instance of the SVNLogClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNLogClient instance




getLookClient
public SVNLookClient getLookClient()(Code)
Returns an instance of the org.tmatesoft.svn.core.wc.admin.SVNLookClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNLookClient instance




getMoveClient
public SVNMoveClient getMoveClient()(Code)
Returns an instance of the SVNMoveClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNMoveClient instance




getOptions
public ISVNOptions getOptions()(Code)
Returns the run-time configuration options driver which kept by this object. a run-time options driver



getStatusClient
public SVNStatusClient getStatusClient()(Code)
Returns an instance of the SVNStatusClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNStatusClient instance




getUpdateClient
public SVNUpdateClient getUpdateClient()(Code)
Returns an instance of the SVNUpdateClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNUpdateClient instance




getWCClient
public SVNWCClient getWCClient()(Code)
Returns an instance of the SVNWCClient class.

If it's the first time this method is being called the object is created, initialized and then returned. Further calls to this method will get the same object instantiated at that moment of the first call. SVNClientManager does not reinstantiate its SVN*Client objects. an SVNWCClient instance




newInstance
public static SVNClientManager newInstance()(Code)
Creates a new instance of this class using default ISVNOptions and org.tmatesoft.svn.core.auth.ISVNAuthenticationManager drivers. That means this SVNClientManager will use the SVN's default run-time configuration area. a new SVNClientManager instance



newInstance
public static SVNClientManager newInstance(ISVNOptions options)(Code)
Creates a new instance of this class using the provided ISVNOptions and default org.tmatesoft.svn.core.auth.ISVNAuthenticationManager drivers. That means this SVNClientManager will use the caller's configuration options (which correspond to options found in the default SVN's config file) and the default SVN's servers configuration and auth storage.
Parameters:
  options - a config driver a new SVNClientManager instance



newInstance
public static SVNClientManager newInstance(ISVNOptions options, ISVNAuthenticationManager authManager)(Code)
Creates a new instance of this class using the provided ISVNOptions and org.tmatesoft.svn.core.auth.ISVNAuthenticationManager drivers. That means this SVNClientManager will use the caller's configuration options (which correspond to options found in the default SVN's config file) as well as authentication credentials and servers options (similar to options found in the default SVN's servers).
Parameters:
  options - a config driver
Parameters:
  authManager - an authentication driver a new SVNClientManager instance



newInstance
public static SVNClientManager newInstance(ISVNOptions options, ISVNRepositoryPool repositoryPool)(Code)
Creates a new instance of this class using the provided config driver and creator of of SVNRepository objects.
Parameters:
  options - a config driver
Parameters:
  repositoryPool - a creator of SVNRepository objects a new SVNClientManager instance



newInstance
public static SVNClientManager newInstance(ISVNOptions options, String userName, String password)(Code)
Creates a new instance of this class using the provided ISVNOptions driver and user's credentials to make a default implementation of org.tmatesoft.svn.core.auth.ISVNAuthenticationManager use them. That means this SVNClientManager will use the caller's configuration options (which correspond to options found in the default SVN's config file), the default SVN's servers configuration and the caller's credentials.
Parameters:
  options - a config driver
Parameters:
  userName - a user account name
Parameters:
  password - a user password a new SVNClientManager instance



setAuthenticationManager
public void setAuthenticationManager(ISVNAuthenticationManager authManager)(Code)



setCanceller
public void setCanceller(ISVNCanceller canceller)(Code)



setDebugLog
public void setDebugLog(ISVNDebugLog log)(Code)
Sets a logger to write debug log information to. Sets this same logger object to all SVN*Client objects instantiated by this moment.
Parameters:
  log - a debug logger



setEventHandler
public void setEventHandler(ISVNEventHandler handler)(Code)
Sets an event handler to all SVN*Client objects created and kept by this SVNClientManager.

The provided event handler will be set only to only those objects that have been already created (SVN*Client objects are instantiated by an SVNClientManager at the moment of the first call to a get*Client() method). So, the handler won't be set for those ones that have never been requested. However as they are first requested (and thus created) the handler will be set to them, too, since SVNClientManager is still keeping the handler.
Parameters:
  handler - an event handler




setOptions
public void setOptions(ISVNOptions options)(Code)



shutdownConnections
public void shutdownConnections(boolean shutdownAll)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.