SVNKit Home

org.tmatesoft.svn.core.wc
Class DefaultSVNCommitHandler

java.lang.Object
  extended byorg.tmatesoft.svn.core.wc.DefaultSVNCommitHandler
All Implemented Interfaces:
ISVNCommitHandler

public class DefaultSVNCommitHandler
extends Object
implements ISVNCommitHandler

This is a default implementation for ISVNCommitHandler.

Since methods of those SVN*Client classes that can initiate a commit operation use ISVNCommitHandler to process user's commit log messages there should be a default implementation. If no special implementation of ISVNCommitHandler is provided into those classes then DefaultSVNCommitHandler is the one that is used by default.

Version:
1.1.1
Author:
TMate Software Ltd.
See Also:
ISVNCommitHandler

Constructor Summary
DefaultSVNCommitHandler()
           
 
Method Summary
 String getCommitMessage(String message, SVNCommitItem[] commitables)
          Returns the message itself without any modifications to it or "" if the message is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSVNCommitHandler

public DefaultSVNCommitHandler()
Method Detail

getCommitMessage

public String getCommitMessage(String message,
                               SVNCommitItem[] commitables)
                        throws SVNException
Returns the message itself without any modifications to it or "" if the message is null.

In other words this method does nothing except of replacing null for "".

Specified by:
getCommitMessage in interface ISVNCommitHandler
Parameters:
message - a user's initial commit log message
commitables - an array of SVNCommitItem objects that represent Working Copy items which have local modifications and so need to be committed to the repository
Returns:
the user's initial commit log message or "" if the message is null
Throws:
SVNException

SVNKit Home

Copyright © 2004-2007 TMate Software Ltd. All Rights Reserved.