View Javadoc
1   /*******************************************************************************
2    * Copyright (c) 2010, 2013 Sonatype, Inc.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *    Sonatype, Inc. - initial API and implementation
10   *******************************************************************************/
11  package org.eclipse.aether.transfer;
12  
13  /**
14   * A skeleton implementation for custom transfer listeners. The callback methods in this class do nothing.
15   */
16  public abstract class AbstractTransferListener
17      implements TransferListener
18  {
19  
20      /**
21       * Enables subclassing.
22       */
23      protected AbstractTransferListener()
24      {
25      }
26  
27      public void transferInitiated( TransferEvent event )
28          throws TransferCancelledException
29      {
30      }
31  
32      public void transferStarted( TransferEvent event )
33          throws TransferCancelledException
34      {
35      }
36  
37      public void transferProgressed( TransferEvent event )
38          throws TransferCancelledException
39      {
40      }
41  
42      public void transferCorrupted( TransferEvent event )
43          throws TransferCancelledException
44      {
45      }
46  
47      public void transferSucceeded( TransferEvent event )
48      {
49      }
50  
51      public void transferFailed( TransferEvent event )
52      {
53      }
54  
55  }