01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html.
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12: package org.tmatesoft.svn.core.wc.admin;
13:
14: import org.tmatesoft.svn.core.SVNException;
15: import org.tmatesoft.svn.core.wc.ISVNEventHandler;
16:
17: /**
18: * The <b>ISVNAdminEventHandler</b> is used in several methods of <b>SVNAdminClient</b>
19: * to notify callers of operation progress.
20: *
21: * To register your <b>ISVNAdminEventHandler</b> in {@link SVNAdminClient}
22: * pass it to {@link SVNAdminClient#setEventHandler(ISVNEventHandler) SVNAdminClient.setEventHandler()}.
23: * Or if you are using {@link org.tmatesoft.svn.core.wc.SVNClientManager} you may register your handler
24: * by passing it to
25: * {@link org.tmatesoft.svn.core.wc.SVNClientManager#setEventHandler(ISVNEventHandler) SVNClientManager.setEventHandler()}.
26: * <b>ISVNAdminEventHandler</b> extends {@link org.tmatesoft.svn.core.wc.ISVNEventHandler}, so at the same time you
27: * may use it with other <b>SVN</b>*<b>Client</b> objects and as a cancellation editor.
28: *
29: * @version 1.1.1
30: * @author TMate Software Ltd.
31: * @since 1.1.1
32: */
33: public interface ISVNAdminEventHandler extends ISVNEventHandler {
34: /**
35: * Handles the current admin event.
36: *
37: * @param event an event to handle
38: * @param progress progress state (reserved for future purposes)
39: * @throws SVNException
40: */
41: public void handleAdminEvent(SVNAdminEvent event, double progress)
42: throws SVNException;
43: }
|